
It appears that Win 7 has a command for emptying the RB now instead of ref'ing a GUID in shellex for the task.I would also like to add "empty recycle bin" to the right-click desktop context menu. I have searched the web, but I have been unable to locate a registry script that I can merge into the registry to add this feature. I am familiar with editing the registry, so if anyone knows how to add this feature to the desktop context menu, it would be much appreciated.
Joseph Y.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty]
"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc38486781}"
"Description"="@shell32.dll,-31332"
"Icon"="shell32.dll,-254"
"MUIVerb"="@shell32.dll,-10564"
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty\command]
"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty]
"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc38486781}"
"Description"="@shell32.dll,-31332"
"Icon"="shell32.dll,-254"
"MUIVerb"="@shell32.dll,-10564"
"Position"="Bottom"
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty\command]
"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty]
"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc38486781}"
"Description"="@shell32.dll,-31332"
"Icon"="shell32.dll,-254"
"MUIVerb"="@shell32.dll,-10564"
"Position"="Bottom"
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty\command]
"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"
You're welcome my friendThank you Greg S
Thank you Greg S
To make a .reg :
copye the code
Start,All Programs,Accessorries,Notpad and past the code and close,save..Code:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\empty] "CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc38486781}" "Description"="@shell32.dll,-31332" "Icon"="shell32.dll,-254" "MUIVerb"="@shell32.dll,-10564" "Position"="Bottom" [HKEY_CLASSES_ROOT\Directory\Background\shell\empty\command] "DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"
Then follow like picture:
![]()
Right click on saved .reg and Merge !