Site icon Winhelponline

Windows 10 Command Prompt Can Be Closed using ALT+F4 Hotkey

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 ALT+F4 hotkey?

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.

Changing the Command Prompt ALT+F4 Behavior

Click Start, type Regedit.exe and press {ENTER}. Navigate to the following registry key:

HKEY_CURRENT_USER\Console

Create a DWORD (32-bit) value named "AllowAltF4Close", and set its value data to 0

Exit the Registry Editor.

Now, open a Command Prompt window and try ALT+F4 to close it. I bet you can’t!

Exit mobile version