title: exit /B 0 does not work
body: <p>I have the following problem:</p>
  
  <p>I have created a batch script which calls itself in there (for being able to write a log in parallel). In the script I start another process (like <code>start startServer.bat</code>) which starts up a java process and keeps opened up all the time.</p>
  
  <p>In my original script I wait 30 seconds, check if the process is running and do an:</p>
  
  <pre><code>exit /B 0
  </code></pre>
  
  <p>Unfortunately that does not work, the window shows that the exit /B 0 is being evaluated, but the window still keeps open. When I close the window with the other process (meaning the "child" processes started up in my .bat) my script continues its run.</p>
  
  <p>So:</p>
  
  <p><strong>scriptA.bat</strong></p>
  
  <pre><code>-&gt; in there I call: start startServer.bat
  -&gt; wait 30 seconds
  -&gt; check is server is started
  -&gt; exit /B 0
  Process hangs up!
  </code></pre>
  
  <p>What's very odd, if I wrap another script around, like:</p>
  
  <p><strong>scriptB.bat</strong></p>
  
  <pre><code>-&gt; call scriptA.bat
  -----&gt; in there I call: start startServer.bat
  -----&gt; wait 30 seconds
  -----&gt; check if server is started
  -----&gt; exit /B 0
  -&gt; scriptA.bat continues without any hangup!
  </code></pre>
  
  <p>I also tried the same with exit 0 (without /B) also, same result! In the first case it hangs up, in the second case my window closes as expected...</p>
  
  <p>Has anyone of you ever had such a problem before and knows what's wrong here?
  Process hangs up!</p>