call other.cmd
if %ERRORLEVEL% == 0 GOTO PASSED
rem Do something..
...
:FAILED
exit /B %ERRORLEVEL%
:PASSED
exit /B 0
Last active
August 29, 2015 13:59
-
-
Save miebach/10582006 to your computer and use it in GitHub Desktop.
How to check or return exit codes in batch files?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment