Quit CMD.EXE or the current batch script.
The options below are only available in Windows XP (or later).
Syntax
EXIT [/B] [exitCode]
Key
/B When used in a batch script it will exit the
current batch script instead of CMD.EXE.
If executed from outside a batch script, it
will still quit CMD.EXE
exitCode A numeric number. if /B is specified, sets
ERRORLEVEL that number. If quitting CMD.EXE, sets the process
exit code with that number.