DOS IF %ERRORLEVEL% construct
This is what Mr. Trout is fishing for: EXIT Quits the CMD.EXE program (command interpreter) or the current batch script. EXIT [ /B ] [ exitCode ] /B Specifies to exit the current batch script instead of CMD.EXE. If executed from outside a batch script, it...