Win10 system cancels the command prompt shortcut method

  
In Win10 system, the shortcut key to close the command prompt window is: Alt+F4, which is also the function of win10 system more than other operating systems, but sometimes some users will be delayed This shortcut causes the running Command Prompt window to close suddenly. So, how to cancel the shortcut key to close the command prompt window? In fact, the method is very simple, just modify a registry key.

Registry Editor
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_USERConsole; Br>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