Microsoft DOS exit command
The exit command is used to withdrawal from the currently running application and the MS-DOS session.
The exit command is an internal command and is available in the below Microsoft operating systems.
Windows Vista and later syntax
Quits the CMD.EXE program (command interpreter) or the current batch script.
EXIT [/B] [exitCode]
|/B||Specifies to exit the current batch script instead of CMD.EXE. If executed from outside a batch script, it will quit CMD.EXE.|
|exitCode||Specifies a numeric number. If /B is specified, sets ERRORLEVEL that number. If quitting CMD.EXE, sets the process exit code with that number.|
Windows XP and earlier syntax
Quits the COMMAND.COM program (command interpreter).