Win10 how to cancel shortcuts to close the command prompt function

  
                

To win the command prompt in Win8.1, you can click the close button in the upper right corner or run the exit command from the command prompt. In the Win10 system, the function of closing the command prompt window using the Alt+F4 shortcut is added. If you want to cancel this function, you only need to modify a registry key.

The specific steps are as follows:

1. After entering regedit in the Cortana search bar, press the Enter key to open the Registry Editor;

2. Locate HKEY_CURRENT_USER\\Console;

3, create a new DWORD (32-bit) value, named AllowAltF4Close;

4, double-click AllowAltF4Close, enter 0 in the "value data", click OK.

Alt+F4 is a shortcut to close the program window. Using Alt+F4 to close the command prompt can easily close other windows. At this time, you can use the method described in this article to cancel the shortcut to close the command prompt.

Copyright © Windows knowledge All Rights Reserved