{"id":1398,"date":"2015-12-28T18:54:45","date_gmt":"2015-12-28T13:24:45","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=1398"},"modified":"2019-05-12T02:56:25","modified_gmt":"2019-05-12T02:56:25","slug":"windows-10-cmd-prompt-close-alt-f4-hotkey","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/windows-10-cmd-prompt-close-alt-f4-hotkey\/","title":{"rendered":"Windows 10 Command Prompt Can Be Closed using ALT+F4 Hotkey"},"content":{"rendered":"<p>The much useful ALT+F4 key sequence closes any application, but not the Command Prompt window. Users had to type <i>exit<\/i> or click the Close button to close the window. This is the case in earlier versions of Windows (up to Windows 8.1), but have you noticed that the Windows 10 Command Prompt duly responds to ALT+F4 hotkey?<\/p>\n<p>Not only that! You can even change the Windows 10 Command Prompt behavior as in earlier Windows versions. Probably the developers at Microsoft had legacy applications in mind. By the way, to make Command Prompt not respond to ALT+F4 key sequence, all you need to do is to edit a registry value.<\/p>\n<h2>Changing the Command Prompt ALT+F4 Behavior<\/h2>\n<p><!--more--><\/p>\n<p>Click Start, type <b>Regedit.exe <\/b>and press {ENTER}. Navigate to the following registry key:<\/p>\n<p class=\"registry\">HKEY_CURRENT_USER\\Console<\/p>\n<p>Create a DWORD (32-bit) value named &quot;<b>AllowAltF4Close<\/b>&quot;, and set its value data to 0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/w10-cmd-alt-f4.png\" width=\"527\" height=\"214\"><\/p>\n<p>Exit the Registry Editor.<\/p>\n<p>Now, open a Command Prompt window and try ALT+F4 to close it. I bet you can&#8217;t!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The much useful ALT+F4 key sequence closes any application, but not the Command Prompt window. Users had to type exit or click the Close button to close the window. This is the case in earlier versions of Windows (up to Windows 8.1), but have you noticed that the Windows 10 Command Prompt duly responds to &#8230; <a title=\"Windows 10 Command Prompt Can Be Closed using ALT+F4 Hotkey\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/windows-10-cmd-prompt-close-alt-f4-hotkey\/\" aria-label=\"Read more about Windows 10 Command Prompt Can Be Closed using ALT+F4 Hotkey\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8],"tags":[],"class_list":["post-1398","post","type-post","status-publish","format-standard","hentry","category-windows-10"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":18617,"url":"https:\/\/www.winhelponline.com\/blog\/open-file-folder-path-clipboard-using-shortcut\/","url_meta":{"origin":1398,"position":0},"title":"How to Open File or Folder Path from the Clipboard Using Shortcut","author":"Ramesh","date":"September 15, 2020","format":false,"excerpt":"Sometimes we may need to copy a file or folder path from your email or chat window to the clipboard, and open the file or folder manually. Most people open the file or folder by launching the Run dialog, pasting the path from the Clipboard, and clicking OK. If your\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"copy path to clipboard to Run dialog","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/09\/copy-path-clipboard-run-dialog.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9842,"url":"https:\/\/www.winhelponline.com\/blog\/open-command-prompt-current-folder-keyboard-shortcut\/","url_meta":{"origin":1398,"position":1},"title":"Open Command Prompt in Current Folder Using Keyboard Shortcut","author":"Ramesh","date":"June 19, 2019","format":false,"excerpt":"There are at least a couple of ways to open Command Prompt in the current folder path from a folder window. The two widely used options include running cmd.exe from the File Explorer address bar and using the Open Command window here option from the folder background context menu. But,\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"open command prompt in current folder - autohotkey","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/open-cmd-here-autohotkey-3.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":929,"url":"https:\/\/www.winhelponline.com\/blog\/enable-quick-edit-command-prompt-by-default\/","url_meta":{"origin":1398,"position":2},"title":"How to Enable Quick Edit Mode in the Command Prompt by Default","author":"Ramesh","date":"September 22, 2009","format":false,"excerpt":"You can use the mouse to copy Command Prompt text to the clipboard by enabling the Quick Edit option in Command Prompt shortcut properties. What if you don't use a desktop shortcut to open Command Prompt, and rather run cmd.exe directly? Here is a registry edit which enables Quick Edit\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5778,"url":"https:\/\/www.winhelponline.com\/blog\/set-cmd-prompt-default-window-size-position\/","url_meta":{"origin":1398,"position":3},"title":"How to Set Command Prompt Default Window Size and Position","author":"Ramesh","date":"November 2, 2017","format":false,"excerpt":"When you open Command Prompt and position it on your preferred location on the screen, the setting is not retained. Also, when you resize the Command Prompt window and close it, the setting is not saved. This system managed positioning annoys many users who prefer uniformity in every aspect of\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"command prompt layout and size defaults","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/cmd-default-size-position-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/cmd-default-size-position-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/cmd-default-size-position-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/cmd-default-size-position-3.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1520,"url":"https:\/\/www.winhelponline.com\/blog\/open-elevated-command-prompt-windows\/","url_meta":{"origin":1398,"position":4},"title":"How to Open Elevated or Admin Command Prompt in Windows?","author":"Ramesh","date":"March 5, 2007","format":false,"excerpt":"Command Prompt is one of the most used tools in Windows. For tasks requiring administrator privileges, we need to start Command Prompt as administrator (\"elevated\"). This article describes different ways to open an elevated or administrator Command Prompt window. How to Open Elevated or Admin Command Prompt From the Win-X\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"task manager -run command prompt elevated - create new task","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/taskmgr-cmd-elevated.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":26081,"url":"https:\/\/www.winhelponline.com\/blog\/master-list-keyboard-shortcuts-windows-11\/","url_meta":{"origin":1398,"position":5},"title":"Master List of Keyboard Shortcuts in Windows 11","author":"Ramesh","date":"February 2, 2022","format":false,"excerpt":"This page has the complete list of keyboard shortcuts for Windows 11. Keyboard Shortcuts Windows 11 (General) Windows Logo key (Winkey) Command Prompt Dialog box File Explorer Virtual Desktops Taskbar Settings Accessibility Windows 11 Master List of Keyboard Shortcuts General Shortcuts Press this key To do this Ctrl + X\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=1398"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1398\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=1398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=1398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=1398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}