Page 1 of 1

Remove Search Everything... from Recycle Bin context menu

Posted: Mon May 16, 2016 3:36 pm
by nka
Hello,

I would like to keep Everything context menu for folders, but would like to remove the option from the Recycle Bin. Does anyone know the registry key where the recycle bin context menu is located? Thank you! :mrgreen:

Re: Remove Search Everything... from Recycle Bin context men

Posted: Mon May 16, 2016 7:14 pm
by therube
Don't know that you can do that?

You could exclude the /RECYCLER/ directory itself, which would exclude any results from within that directory tree from displaying (but would not disable the context-menu).

Re: Remove Search Everything... from Recycle Bin context men

Posted: Mon May 16, 2016 8:56 pm
by nka
Thanks for your reply. Unfortunately, I'm interested in disabling the context menu for just the recycle bin. I know it is possible in other programs like CCleaner for example. It may be a matter of finding the appropriate registry key to alter. At this point, I have not found that.

Re: Remove Search Everything... from Recycle Bin context men

Posted: Sat May 21, 2016 8:00 am
by mwsm
The registry key for the Recycle Bin folder is:

Code: Select all

HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}
but that won't help you. To accomplish what you want you'll need to move the Search Everything key from:

Code: Select all

HKEY_CLASSES_ROOT\Folder\shell\Search Everything...
to:

Code: Select all

HKEY_CLASSES_ROOT\Directory\shell\Search Everything...
That is, from the Folder key (which also applies to special folders like the Recycle Bin) to the Directory key (which only applies to regular folders). Note that this will also remove the Search Everything context menu item from all other special folders, eg the Control Panel folder.

You can also do this with a .reg file:

Code: Select all

[-HKEY_CLASSES_ROOT\Folder\shell\Search Everything...]

[HKEY_CLASSES_ROOT\Directory\shell\Search Everything...]
[HKEY_CLASSES_ROOT\Directory\shell\Search Everything...\command]
@="\"<your Everything path from the Folder key>" -path \"%1\""
More details here (for Total Commander):

http://ghisler.ch/wiki/index.php/Explorer_integration

Re: Remove Search Everything... from Recycle Bin context men

Posted: Sun May 22, 2016 2:27 am
by nka
@mwsm: Worked great. Thank you!

For anyone who is interested in this tweak copy and paste the following into notepad and then save as All files, and add .reg to the end of the filename

Code: Select all

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Folder\shell\Search Everything...]

[HKEY_CLASSES_ROOT\Directory\shell\Search Everything...]
[HKEY_CLASSES_ROOT\Directory\shell\Search Everything...\command]
@="\"<your Everything path from the Folder key>" -path \"%1\""

*note: you should probably back up your registry before applying this, just in case.

Re: Remove Search Everything... from Recycle Bin context men

Posted: Wed Jul 10, 2019 12:35 am
by Eagleizer
nka wrote:
Sun May 22, 2016 2:27 am
@mwsm: Worked great. Thank you!

For anyone who is interested in this tweak copy and paste the following into notepad and then save as All files, and add .reg to the end of the filename

Code: Select all

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Folder\shell\Search Everything...]

[HKEY_CLASSES_ROOT\Directory\shell\Search Everything...]
[HKEY_CLASSES_ROOT\Directory\shell\Search Everything...\command]
@="\"<your Everything path from the Folder key>" -path \"%1\""

*note: you should probably back up your registry before applying this, just in case.
Thanks a lot for the added information! I could not get it to work without the
"Windows Registry Editor Version 5.00".

Some day, maybe this can be done from within the Tools menu in Everything.


Cheers :)

Re: Remove Search Everything... from Recycle Bin context menu

Posted: Wed Jul 31, 2019 5:05 pm
by soaper
Just confirming that this fix works on Windows 10 version 1903.

And shame on Search Everything for adding a context menu entry to the Recycle Bin without consent from the user! ;)