Windows – print exit code in cmd in windows os

command-line-interfacewindowswindows-command-prompt

print exit code in cmd in windows os ….some command return exit code …where this code store…and i want to print this exit code and assign it to variable

Best Answer

echo %ERRORLEVEL%