If a program was invoked by COMMAND.COM, the internal IF command with its ERRORLEVEL conditional can be used to test on error conditions of the last invoked external program.
If a program was invoked by COMMAND.COM the internal IF command with its ERRORLEVEL conditional can be used to test on error conditions of the last invoked external pro,gram.