Page 1 of 1
Search multiple paths with command line?
Posted: Fri Jan 05, 2024 9:10 pm
by burma
When I go
"C:\Program Files\Everything\Everything.exe" -filename "C:\tmp\"
it works great, searching in just that folder. How do I add "C:\tmp2\" to the command line so it searches both "C:\tmp\" and "C:\tmp2\" together?
Thanks
Re: Search multiple paths with command line?
Posted: Fri Jan 05, 2024 9:26 pm
by therube
Drop the -filename & just enter your wanted directories,
everything.exe c:/out/tt c:/tmp/chkchk
.
Re: Search multiple paths with command line?
Posted: Fri Jan 05, 2024 10:57 pm
by NotNull
Assuming Everything 1.4 and Command Prompt (CMD) as the command-line:
Code: Select all
"c:\path to\Everything.exe" -search " """c:\first folder\""" | """c:\second folder\""" "
Re: Search multiple paths with command line?
Posted: Sat Jan 06, 2024 12:02 am
by burma
therube wrote: ↑Fri Jan 05, 2024 9:26 pm
Drop the -filename & just enter your wanted directories,
everything.exe c:/out/tt c:/tmp/chkchk
.
Didn't work. I created the folders "C:\test, test" and "C:\test, test 2", and created this shortcut:
"C:\Program Files\Everything\Everything.exe" "C:\test, test" "C:\test, test 2".
I get this error:
Re: Search multiple paths with command line?
Posted: Sat Jan 06, 2024 12:04 am
by burma
NotNull wrote: ↑Fri Jan 05, 2024 10:57 pm
Assuming Everything 1.4 and Command Prompt (CMD) as the command-line:
Code: Select all
"c:\path to\Everything.exe" -search " """c:\first folder\""" | """c:\second folder\""" "
This worked but is there another way that doesn't use so many quotes?! I'll never remember that! Thanks
Re: Search multiple paths with command line?
Posted: Sat Jan 06, 2024 1:32 am
by NotNull
Yes: install
Everything 1.5
Command:
Code: Select all
"c:\path to\Everything64.exe" -search* pathlist:"c:\first folder\";"c:\second folder\"
Note the * after -search. This will treat the rest of the command-line as literal text.
Folders are separated by a semi-colon (
;)