How does the right-click menu add commands for emptying the Recycle Bin and restarting?

Source: Internet
Author: User
Tags reset

Emptying the Recycle Bin and restarting these two commonly used commands, we can modify the registry, add it to the right mouse button menu, so as to develop personalized right-click menu and improve the efficiency of the computer.

1, add "Restart" command in the right-click menu

Press Win+r, enter "regedit" to open Registry Editor, and select Hkey_classes_rootdirectoryshell subkey. Under this subkey, create a new reset subkey. Sets the key value entry to "reboot".

Under Reset subkey, create a new subkey named command, set the key value of the subkey to Shutdown–r–t 1–c "reboot in 1 Seconds"

Logging off or restarting your computer will take effect, and when you right-click any folder, you'll see a "reboot" command in the pop-up right-click menu.

2, add "empty Recycle Bin" command in the right key menu

Windows Registry Editor Version 5.00

[Hkey_classes_root*shellempty]

"Commandstatehandler" = "{c9298eef-69dd-4cdd-b153-bdbc38486781}"

"Description" = "@shell32. dll,-31332"

"Icon" = "shell32.dll,-254"

"MUIVerb" = "@shell32. dll,-10564"

[Hkey_classes_root*shellemptycommand]

"Delegateexecute" = "{48527bb3-e8de-450b-8910-8c4099cb8624}"

[Hkey_classes_rootfoldershellempty]

"Commandstatehandler" = "{c9298eef-69dd-4cdd-b153-bdbc38486781}"

"Description" = "@shell32. dll,-31332"

"Icon" = "shell32.dll,-254"

"MUIVerb" = "@shell32. dll,-10564"

[Hkey_classes_rootfoldershellemptycommand]

"Delegateexecute" = "{48527bb3-e8de-450b-8910-8c4099cb8624}"

Copy the above code, paste it into Notepad, save it as a **.reg suffix file, and then import it into the registry, and when you right-click any file or folder, the right-click menu will see the option to empty the Recycle Bin.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.