title: Exit a batch script that called another batch script
body: <p>I have a batch script that calls a sequence of batch files.</p>
  
  <p>There is an error case where I need to exit the batch file that was called, as well as the parent batch file. Is it possible to accomplish this inside the child batch file?</p>
  
  <h3>test.bat</h3>
  
  <pre><code>rem Test1.bat will exit with error code.
  call test1.bat
  rem Want script to stop if test1.bat errors.
  call test2.bat
  </code></pre>
  
  <h3>test1.bat</h3>
  
  <pre><code>rem Can I get test.bat to terminate from inside test1.bat?
  exit /b 1
  </code></pre>