Empty Recycle Bin - Add to Desktop Context Menu

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #10

    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 Computer


  2. Posts : 27
    Windows 7 Ultimate x64
       #11

    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
    Last edited by TomHartwald; 05 Nov 2013 at 13:32.
      My Computer


  3. Posts : 27
    Windows 7 Ultimate x64
       #12

    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 Computer


  4. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #13

    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 Computer


  5. Posts : 27
    Windows 7 Ultimate x64
       #14

    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 Computer


  6. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #15

    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 Computer


  7. Posts : 27
    Windows 7 Ultimate x64
       #16

    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 Computer


  8. Posts : 3
    Windows 7 Ultimate x32
       #17

    Brink said:
    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 Computer


  9. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #18

    You're welcome Mehdircm, and welcome to Seven Forums. :)
      My Computer


  10. Posts : 32
    xp , vista
       #19

    Unfortunately did not works for me


    Hello,
    I have windows 7/64 ultimate.
    I did everything i could , including SFC or clean registry.
    When i right click on recycle bin i do not have the option to empty.
    I can manually empty but it is not on the menu.
    I have the option when i right click on the desktop.
    It does clean it, BUT, the ICON stay the same as FULL.
    If i refresh the desktop, icon does not change.
    Please help as it drive me crazy
    Thank you very much
    Attached Thumbnails Attached Thumbnails Empty Recycle Bin - Add to Desktop Context Menu-recylebin.jpg   Empty Recycle Bin - Add to Desktop Context Menu-dektopoption.jpg  
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About 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 16:54.
Find Us