Home » Questions » Computers [ Ask a new question ]

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

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

How to check return code of this command ?

Asked by: Guest | Views: 98
Total answers/comments: 1
Guest [Entry]

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

echo %ERRORLEVEL%"