2
reg import RegFile.reg

How to check return code of this command ?

Kevin Panko
  • 7,346
  • 22
  • 44
  • 53
Ashish
  • 187
  • 1
  • 3
  • 10

1 Answers1

1

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
  • 163,373
  • 27
  • 341
  • 348