How to add the "Empty Recycle Bin" and "Restart" commands to the right-click menu

  
 

I believe that every netizen needs to use the “Empty Recycle Bin” and “Restart” operations every day. How to make these two operations easier and faster, that is, add these two commands to the right-click menu. Let's take a look at how to add it. 1. Add “restart” in the right-click menu. Press Win+R, type “regedit”Open the registry editor and select the HKEY_CLASSES_ROOT\\Directory\\shell subkey. Create a subkey of Reset under the subkey. Set the key-value item to “restart”. Under the Reset subkey, create a new subkey named Command. Set the subkey's key value to shutdown –r –t 1 –c “ Logout or restart computer
will take effect. When you right-click on any folder, you will see the "Restart" command in the pop-up context menu. 2. Add “Empty Recycle Bin" in the right-click menu. Windows
Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\\*\\shell\\empty] "CommandStateHandler"="{c9298eef-69dd-4cdd-b153 -bdbc38486781}" "Description"="@shell32.dll,-31332" "Icon"="shell32.dll,-254" "MUIVerb"="@shell32.dll,-10564" [ ,null,null,3],HKEY_CLASSES_ROOT\\*\\shell\\empty\\command] "DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}" [HKEY_CLASSES_ROOT\\Folder\\shell\\empty] "CommandStateHandler"="{c9298eef-69dd -4cdd-b153-bdbc38486781}" "Description"="@shell32.dll,-31332" "Icon"="shell32.dll,-254" "MUIVerb"="@shell32.dll, -10564" [HKEY_CLASSES_ROOT\\Folder\\shell\\empty\\command] "DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}" Copy the above code, paste it into Notepad, save it as a .reg suffix File, then import to register You can, when you right click on any file or folder, right-click menu you can see the option to empty the Recycle Bin.

Copyright © Windows knowledge All Rights Reserved