CmdID

CmdID / Commands

exit

Exits the command interpreter or the current batch script. Windows commands reference

On Windows, DOS 1 sub-command

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0
exit [/b] [<exitcode>]

To close the command interpreter, type

/bExits the current batch script instead of exiting Cmd.exe. If executed from outside a batch script, exits Cmd.exe.
<exitcode>Specifies a numeric number. If /b is specified, the ERRORLEVEL environment variable is set to that number. If you are quitting the command interpreter, the process exit code is set to that number.
/?Displays help at the command prompt.

Several platforms

from tldr-pages, CC BY 4.0

Exit the shell.

Exit with the exit status of the most recently executed command

Exit with a specific exit status

exit 0..255Identify

Windows

from tldr-pages, CC BY 4.0

Quit the current CMD instance or the current batch file.

Quit the current CMD instance

Quit the current batch script

exit /bIdentify
/bExits the current batch script instead of exiting Cmd.exe. Windows commands reference

Quit using a specific exit code

exit 2Identify

Exit DOSBox.

Exit DOSBox

Sub-commands

each with its page