Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Empty Recycle Bin - Add to Desktop Context Menu

13 Mar 2013   #10
Brink

64-bit Windows 10 Pro
 
 

You're most welcome. Glad it could help.

Yeah, I've seen the other removed duplicate thread. The .reg file in it would have only added "Empty Recycle Bin" to the desktop background like in the tutorial here. It wasn't for what you wanted.


My System SpecsSystem Spec
.
04 Nov 2013   #11
TomHartwald

Windows 7 Ultimate x64
 
 
Empty the Recycle Bin without Confirmation Dialog


This dialog is really annoying me:
In 99% of all cases where I accidentally deleted something I wanted to keep,
I used [Shift+Del] from the keyboard, so the dialog is not really helpful for me,
only consuming my time.

I found a little patch to get rid of it here
How to Disable the Empty Recycle Bin Confirmation Box in Windows 7 - The Winhelponline Blog
but it only works with right-clicking the Recycle Bin, not with this nice Context Menu patch.

So I modified the original ".reg" file to get it work (Version with entry at bottom of context menu) :

Code:
Windows Registry Editor Version 5.00

; Executed silently (No Confirmation Dialog) with NirCmd

[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"=""
@="nircmd.exe emptybin"
Note: Only the original line below "command" is exchanged with the two new lines.

You now need the NirCmd - Windows command line tool
in your "C:\Windows\System32" folder, it's described for example here in the Forum :
Eject and Close CD/DVD Tray - Add to Desktop Context Menu


Regards,
Tom
My System SpecsSystem Spec
12 Nov 2013   #12
TomHartwald

Windows 7 Ultimate x64
 
 

Addition :

Strange, I did a System Recovery to a state before that patch, so I had
to re-apply it, and I only now noticed, that I can change the used icon too:


As always, be careful when playing around with the Registry,
make a backup copy before applying any patches !


Start RegEdit and navigate to
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty]

In the left pane click on "empty", then in the right pane
double-click (or use rigth-click > Edit) on "Icon"
and replace "shell32.dll,-254" with the path to your icon, e.g.

"C:\Users\Public\My_Icons\Trash_Context_Menu.ico"
(use quotes if you have any spaces in your path).


But now I wanted to change the original icon in the context menu
of Recycle Bin to my icon too ...

That can be done easyly if you had applied the patch from
How to Disable the Empty Recycle Bin Confirmation Box in Windows 7 - The Winhelponline Blog

Start RegEdit and navigate to
[HKEY_CURRENT_USER\Software\Classes\CLSID\
{645FF040-5081-101B-9F08-00AA002F954E}\shell\empty]


In the left pane click on "empty", then in the right pane
right-click on an empty space and select "New > String Value" (REG_SZ),
and name it "Icon". Use the path to your icon as data.


Regards,
Tom
My System SpecsSystem Spec
12 Nov 2013   #13
Brink

64-bit Windows 10 Pro
 
 

Hey Tom,

Instead of going through all that to change the Recycle Bin icon, you could just use this below to change it's icon the "Desktop Icon Settings" UI.

Desktop Icons - Change or Restore Default Icon


As for the context menu in this tutorial, you could edit the .reg file to change the part in red below with the full path of the .ico file you wanted instead.

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"
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty\command]
"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"
My System SpecsSystem Spec
.

12 Nov 2013   #14
TomHartwald

Windows 7 Ultimate x64
 
 

Hi Shawn,

to be honest, I already patched the ".reg" file in case I had to redo it again ...

I only used the descriped method cause the ".reg" patch was applied and I wanted
to test, if my change would work before editing the ".reg" file.
(Uhh, it's Windows, so you never know ... )


And btw, I also already changed my Recycle Bin icon to my old favorite
from Windows ME, using the "Desktop Icon Settings",

but that didn't change the small icon in the Recycle Bin context menu.

Should it change that too, another bug in Windows, or is it again just
me experiencing strange side effects ??

Anyway, I got what I wanted, so I'm happy again, enjoying this Forum.


Thanks for taking care,
Tom


P.S.
Still working on how to add an icon to a context menu entry made by the system,
like ""Open file location" or the "New" sub-menu here
add an icon to a context menu entry made by the system ?
but that seems to be a little bit more complicated (or impossible) ...
My System SpecsSystem Spec
12 Nov 2013   #15
Brink

64-bit Windows 10 Pro
 
 

Nar, the context menu uses it's own separate icon specified by the "Icon" string value in the .reg file.

Glad you got what you wanted though.
My System SpecsSystem Spec
12 Nov 2013   #16
TomHartwald

Windows 7 Ultimate x64
 
 

Yeah, it's a little bit confusing with all the icons in different .dll's.

Seems that Windows uses imageres.dll #54 and #55
for his Recycle Bin, containing the 256x256 size, while
shell32.dll #254 has only a maximum size of 32x32.
My System SpecsSystem Spec
10 Mar 2014   #17
mehdircm

Windows 7 Ultimate x32
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello soulcoma,

Downloading and merging the .reg file I created below should restore Empty Recycle Bin back to the Recycle Bin context menu for you.
buddy thanks a lot
My System SpecsSystem Spec
10 Mar 2014   #18
Brink

64-bit Windows 10 Pro
 
 

You're welcome Mehdircm, and welcome to Seven Forums.
My System SpecsSystem Spec
Reply

 Empty Recycle Bin - Add to Desktop Context Menu




Thread Tools




Similar help and support threads
Thread Forum
Getting back 'Empty Recycle Bin' Context Menu On Recycle Bin
Hey! I accidentally removed my Empty Recycle Bin option from Recycle Bin context menu while playing around with context menu editing tool (Windows 7 Manager). I cannot to system restore because I installed many things, etc. which would be hassle to sort out. Could you please provide me with a...
Customization
Add Delete to Recycle Bin to Context Menu on Folder Space
I want something on the context menu that: 1. I can right click on empty folder space within the folder 2. Context menu says "delete folder to recycle bin" 3. The folder and all its contexts disappears and therefore so does the window I just used to delete it You can do this with filemenu...
Customization
Next Desktop Background - Add or Remove from Desktop Context Menu
Add or Remove "Next desktop background" from Desktop Context Menu in Windows 7 and Windows 8 A desktop slideshow is a slideshow of wallpaper images (pictures) of your choice on your desktop. When a desktop slideshow is being used in Windows 7 or Windows 8, Windows automatically adds Next...
Tutorials
Recycle Bin - Add or Remove from Desktop Context Menu
How to Add or Remove "Recycle Bin" from Desktop Context Menu The Recycle Bin provides a safety net when deleting files or folders. When you delete any of these items from your hard disk, Windows places it in the Recycle Bin and the Recycle Bin icon changes from empty to full. This will...
Tutorials
Context Menu - Add Empty Folder and Subfolders
How to Add "Empty Folder and Subfolders" to Context Menu in Windows This tutorial will show you how to add Empty Folder and Subfolders to the context menu to be able to automatically permanently delete all file contents of a folder and it's subfolders without deleting the subfolders in...
Tutorials
Recycle bin (again) - need default context menu
After some unconsious playing around - I managed to loose most of the context menu for my Recycle bin. "empty recycle" is gone, "delete" is gone etc... I tried to create a new user account and copy the settings from there - but - same things ... So - please - if anyone could dump their...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:38.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App