How to check return status of command invoked from command line in windows?

1

reg import RegFile.reg

How to check return code of this command ?

ashish

Posted 2010-01-08T12:13:48.277

Reputation: 177

Answers

0

The exit status of the last command should be stored in the ERRORLEVEL variable. Run this after running your reg command:

echo %ERRORLEVEL%

John T

Posted 2010-01-08T12:13:48.277

Reputation: 149 037