Is there something like Unix's echo $?
in Windows?
2 Answers
Use the errorlevel environment variable:
echo %errorlevel%
This question on stackoverflow has more detailed information.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityUse the errorlevel environment variable:
echo %errorlevel%
This question on stackoverflow has more detailed information.