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<
If you want to match the error code exactly (eg equals 0), use this:
@echo off my_nify_exe.exe if %ERRORLEVEL% EQU 0 ( echo Success ) else ( echo Failure Reason Given is %errorlevel% exit /b %errorlevel% )
if errorlevel 0 matches errorlevel >= 0. See if /?.
if errorlevel 0
errorlevel
if /?