exit

Windows CMD · Terminal · available in the simulator

What it does

Quits the command interpreter window.

Syntax

exit [/b] [código]

Options and parameters

  • /b N

    exits the script with exit code N (does not close cmd)

  • /B

    Exits only the current batch script instead of CMD.EXE.

    exit /b 1

Usage examples

  • exit
  • exit /b 1
Practise exit

Related commands