Windows 7 – Keyboard Shortcut to Close Command Prompt Window

command linekeyboard shortcutswindows 7

Is there any keyboard shortcut to close the Command Prompt window in Windows 7? Alt+F4 does not seem to work on a Command Prompt window.

I close it right now by typing exit and Enter at the prompt. Hoping there is a shorter trick.

Best Answer

  • Alt+Space, C

  • Create an alias using doskey: doskey x=exit