Search multiple paths with command line?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
burma
Posts: 10
Joined: Tue Jan 29, 2013 8:07 pm

Search multiple paths with command line?

Post 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
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search multiple paths with command line?

Post by therube »

Drop the -filename & just enter your wanted directories,
everything.exe c:/out/tt c:/tmp/chkchk
.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search multiple paths with command line?

Post 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\""" "
burma
Posts: 10
Joined: Tue Jan 29, 2013 8:07 pm

Re: Search multiple paths with command line?

Post 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:

Image
burma
Posts: 10
Joined: Tue Jan 29, 2013 8:07 pm

Re: Search multiple paths with command line?

Post 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
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search multiple paths with command line?

Post 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 (;)
Post Reply