I am running a program and want to see what its return code is (since it returns different codes based on different errors).
I know in Bash I can do this by running<
Use the built-in ERRORLEVEL Variable:
echo %ERRORLEVEL%
But beware if an application has defined an environment variable named ERRORLEVEL!