How to specify two or more paths when using the command line -p?

General discussion related to "Everything".
Post Reply
lanyer
Posts: 4
Joined: Thu Jan 01, 2026 7:44 am

How to specify two or more paths when using the command line -p?

Post by lanyer »

When searching for "abc" in D:\xyz, the command line syntax is `Everything -name-part "abc" -p "D:\xyz"`. So, how to write the command line when need to search in D:\xyz and E:\xyz ?
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to specify two or more paths when using the command line -p?

Post by void »

Code: Select all

Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc"
""" = a single literal "
| = OR
Make sure | is inside quotes (") or use ^|
Use a trailing \ on the paths.



-s
Command line escaping
Search operators
nopath:
lanyer
Posts: 4
Joined: Thu Jan 01, 2026 7:44 am

Re: How to specify two or more paths when using the command line -p?

Post by lanyer »

Thank you for your answer, another question, how to write the command line when need to search "abc" and "def" in D:\xyz and E:\xyz ?
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to specify two or more paths when using the command line -p?

Post by void »

Code: Select all

Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc nopath:def"
lanyer
Posts: 4
Joined: Thu Jan 01, 2026 7:44 am

Re: How to specify two or more paths when using the command line -p?

Post by lanyer »

void wrote: Sat Jan 03, 2026 9:31 pm

Code: Select all

Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc nopath:def"
Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc nopath:def"
Test failed

when I use
Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc | nopath:def"
it works good,

but if want to go further, find "ab c" and "d ef"
must write like this:
Everything.exe -s " """D:\xyz\""" | """E:\xyz\""" nopath:"""ab c""" | nopath:"""d ef""" "

There are so many quotation marks here, it's absolutely insane.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to specify two or more paths when using the command line -p?

Post by void »

What version of Everything are you using?

Everything 1.5 will have support for:

Code: Select all

Everything.exe -s* "D:\xyz\" ^| "E:\xyz\" nopath:"ab c" ^| nopath:"d ef"
-s* = match the rest of the command line as a literal search.
You'll still need to escape | with ^|
Post Reply