title: Why can't get exit code of batch file executed with command start?
body: <p>When I run command <code>Start C:\temp\sub2.bat</code> in a command prompt window, errorlevel set is <code>4</code> and this is correct because a file which is indicated in batch does not exist. But when I run through this below, errorlevel returns <code>0</code>. I have no idea why the exit codes are different.</p>
  
  <p>Can anyone give me an advice for the reason?</p>
  
  <pre><code>@echo off
  Call :Sub1
  GOTO :EOF
  
  :Sub1
  start C:\temp\sub2.bat
  echo %errorLevel%
  </code></pre>