Page 1 of 1

search by sample

Posted: Sat Dec 19, 2020 10:47 pm
by Markus1969
Would it be posible to drag and drop a file into everything and find all ocurrences of this file in all drives?
even if the name of the file varies

Re: search by sample

Posted: Sat Dec 19, 2020 10:51 pm
by void
Currently no, sorry.

A option to do this is in development.

For now, you may wish to enable dropping files on the search box:
  • In Everything, type in the following search and press ENTER:
    /search_edit_drag_accept_files=1
  • If successful you should see search_edit_drag_accept_files=1 in the status bar for a few seconds.
  • You can now drag files onto the search box in Everything.
  • Unfortunately, this will currently search for the exact file. You will need to manually modify the search to include only the part of interest.

Re: search by sample

Posted: Sat Dec 19, 2020 11:09 pm
by NotNull
You probably drag the file from File Explorer or another file manager?

In that case, I just wrote an alternative:
- right-click your file
- Select "Search for this filename in Everything" from the context menu


How?
  • Save this text as SearchFile.reg somewhere on your system
  • Edit both paths to Everything.exe to match your situation
    (currently C:\Tools\Everything\everything.exe )
  • Save the file
  • Double-click it
  • Done
From now on you can right-click any file and search for it in Everything.

Note: will not work if you run Everything as dministrator (although there are workarounds for that)

SearchFile.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName]
"MUIVerb"="Search for this filename in Everything"
"Icon"="\"C:\\Tools\\Everything\\everything.exe\""

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName\command]
@="\"C:\\tools\\Everything\\Everything.exe\" -namepart \"%1\""

Re: search by sample

Posted: Sun Dec 20, 2020 5:03 am
by Markus1969
void wrote:
Sat Dec 19, 2020 10:51 pm
Currently no, sorry.

A option to do this is in development.
still it's great it would be a choice soon

Re: search by sample

Posted: Sun Dec 20, 2020 5:07 am
by Markus1969
NotNull wrote:
Sat Dec 19, 2020 11:09 pm
You probably drag the file from File Explorer or another file manager?

In that case, I just wrote an alternative:
- right-click your file
- Select "Search for this filename in Everything" from the context menu


How?
  • Save this text as SearchFile.reg somewhere on your system
  • Edit both paths to Everything.exe to match your situation
    (currently C:\Tools\Everything\everything.exe )
  • Save the file
  • Double-click it
  • Done
From now on you can right-click any file and search for it in Everything.

Note: will not work if you run Everything as dministrator (although there are workarounds for that)

SearchFile.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName]
"MUIVerb"="Search for this filename in Everything"
"Icon"="\"C:\\Tools\\Everything\\everything.exe\""

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName\command]
@="\"C:\\tools\\Everything\\Everything.exe\" -namepart \"%1\""
Done!!! while the new option come up. thanks

Re: search by sample

Posted: Sun Dec 20, 2020 5:41 am
by Markus1969
WOW ITS A GREAT NotNull :idea: IT WORKS NICELY

Re: search by sample

Posted: Sun Dec 20, 2020 11:05 am
by NotNull
You're welcome!


BTW, I just noticed that it doesn't work on *all* files:

If you select a shortcut (.LNK file) , it will operate on the target of that shortcut, instead of the shortcut itself.
Doesn't look like a big deal to me; just mentioning it ...