How to close or exit the Windows command line
Updated: 12/29/2017 by Computer Hope
To close or exit the Windows command line window type exit and press Enter.
The exit command can also be placed in a batch file.
You can also use the universal shortcut key Alt+F4 to close a Command Prompt window.