Hi,
I want to add a "Search for this filename in Everything" to the right-click context menu.
I'm only able to output the full path in the search box.
"C:\Program Files\Everything\Everything.exe" -search "%1"
Result:
C:\Users\MC\Desktop\New folder (2)\New Text Document.txt
"C:\Program Files\Everything\Everything.exe" -path "%1"
Result:
"C:\Users\MC\Desktop\New folder (2)\New Text Document.txt\"
How to only output the filename in the search box ?
Search for filename in Everything from context menu
Re: Search for filename in Everything from context menu
Please try the following call:
"C:\Program Files\Everything\Everything.exe" -name-part "%1"
https://www.voidtools.com/support/everything/command_line_options/#-name-part
Add Search Everything context menu item to all files
"C:\Program Files\Everything\Everything.exe" -name-part "%1"
https://www.voidtools.com/support/everything/command_line_options/#-name-part
Add Search Everything context menu item to all files
Re: Search for filename in Everything from context menu
void wrote: ↑Sat Jan 23, 2021 11:05 am Please try the following call:
"C:\Program Files\Everything\Everything.exe" -name-part "%1"
https://www.voidtools.com/support/everything/command_line_options/#-name-part
Add Search Everything context menu item to all files
Thanks guys for the help ! These commands are not working.
"C:\Program Files\Everything\Everything.exe" -name-part "%1"
Result:
nopath:wfn:"New Text Document.txt"
"C:\Program Files\Everything\Everything.exe" -filename "%1"
Result:
"C:\Users\MC\Desktop\New Text Document.txt"
But I was able to make it work with an autohotkey script !
Code: Select all
Clipboard :=
Send ^c
Clipwait
SplitPath, Clipboard,,,, fileNameNoEXT
clipboard := fileNameNoEXT
run , "C:\Program Files\Everything\Everything.exe" -search "%Clipboard%"
clipboard := store
store =
return
Code: Select all
ENTER HOTKEY HERE::
clipboard := "" ; Start off empty to allow ClipWait to detect when the text has arrived.
Send ^c
ClipWait ; Wait for the clipboard to contain text.
Run , "C:\Program Files\Everything\Everything.exe" -search "%Clipboard%"
clipboard := store
store =
return