title: Making command prompt wait
body: <pre><code>@call JBOSSbuildWar.bat &gt; ..\logs\JBOSSbuildWar_out 2&gt; ..\logs\JBOSSbuildWar_err
  
  start cmd /c @call WeblogicbuildWar.bat &gt; ..\logs\WeblogicbuildWar_out 2&gt; ..\logs\WeblogicbuildWar_err
  
  start cmd /c @call FEBAPortletWebWar.bat &gt; ..\logs\FEBAPortletWebWar_out 2&gt; ..\logs\FEBAPortletWebWar_err
  
  start cmd /c @call buildStaticJBoss.bat &gt; ..\logs\JBOSSFEBAStaticWar_out 2&gt; ..\logs\JBOSSFEBAStaticWar_err
  </code></pre>
  
  <p>I have this set of batch files getting executed in order. I want to fork out this so that they execute in parallel. I have done that using start cmd /c. Now this will fork out new command prompt window for each of them. Assume there are some set of statements after this. I want to make sure they get executed only after all the forked batch files are finished. How to achieve this?</p>
  
  <p>Lets say average time taken by each file is:
  JBOSSbuildWar- 30 minutes
  WeblogicbuildWar- 35 minutes
  FEBAPortletWebWar- 30 minutes
  buildStaticJBoss- 35 minutes</p>
  
  <p>Since the main command prompt window has completed its task in 30 minutes, and the forked batch files needs another 5 minutes to complete, I want the main cmd to wait until the others are done. Kindly help.</p>