Skip to main content

Quit the current CMD instance or the current batch file in Windows.

:: To quit the current CMD instance:
exit

:: To quit the current batch script:
exit /b

:: To quit using a specific exit code:
exit <exit_code>