Take the 2-minute tour ×  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.  share|improve this question  5 Answers 5  up
vote 20 down vote accepted   • Alt+Space, C    • Create an alias
using doskey: doskey x=exit  share|improve this answer  Wrap CMD
in Console2, which would give you CTRL+W to close tabs and
ALT+F4 to exit. You will also be able to use CTRL+V to Paste, if
you wish, which is one of the main reasons I use it.
share|improve this answer  Here's an autohotkey script that'll
do it.  #IfWinActive ahk_class ConsoleWindowClass Send,{LAlt
Down}{Space Down}{Space Up}{LAlt Up}{c Down}  It just sends
Alt+Space, C to the window when Ctrl+w is hit (if it's a command
prompt).  share|improve this answer  It depends from your choice
of command interpreter. This is, of course, because it is your
command interpreter that is (largel