What is the equivalent to $? in Windows?

command-line, linux, windows

Solution

You want to check the value of `%ERRORLEVEL%`.

Problem

Does anybody know what is the equivalent to `$?` in Windows command line? Is there any? EDIT: `$?` is the UNIX variable which holds the exit code of the last process

Original source