Basically, let\'s say that I have a batch file that calls myapp1.exe and myapp1.exe exits with Exit Code 1. Can the batch file capture this information and either force the batc
%ERRORLEVEL% stores the return value of last executed command
call program.exe echo program.exe returns "%ERRORLEVEL%" IF %ERRORLEVEL% NEQ 0 ( echo FAILED )