

Note: In command prompt's options, it is possible to enable the "legacy" mode of the console: Now, if you open the command prompt, it will not be possible to close it using the Alt + F4 hotkey. Note: If you are running 64-bit Windows 10, you still need to create a 32-bit DWORD value. Create a new 32-bit DWORD value named AllowAltF4Close.Tip: See how to jump to the desired Registry key with one click. Go to the following path: HKEY_CURRENT_USER\Console.Close all opened command prompt instances.However, if you really need to disable this ability of the command prompt to be closed with Alt + F4, Microsoft allows a Registry tweak.

There is no reason actually for anyone to disable this feature. In all previous Windows versions like Windows XP, Windows Vista, Windows 7 or Windows 8, you had to type "exit" to close the command prompt or or click the "X" button using the mouse or touch. Windows 10 is the first operating system where Microsoft has made it possible to close the command prompt window using the common shortcut Alt + F4.
