How to specify two or more paths when using the command line -p?
How to specify two or more paths when using the command line -p?
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 ?
Re: How to specify two or more paths when using the command line -p?
Code: Select all
Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc"| = OR
Make sure | is inside quotes (") or use ^|
Use a trailing \ on the paths.
-s
Command line escaping
Search operators
nopath:
Re: How to specify two or more paths when using the command line -p?
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 ?
Re: How to specify two or more paths when using the command line -p?
Code: Select all
Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc nopath:def"
Re: How to specify two or more paths when using the command line -p?
Everything.exe -s """"D:\xyz\""" | """E:\xyz\""" nopath:abc nopath:def"void wrote: Sat Jan 03, 2026 9:31 pmCode: Select all
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.
Re: How to specify two or more paths when using the command line -p?
What version of Everything are you using?
Everything 1.5 will have support for:
-s* = match the rest of the command line as a literal search.
You'll still need to escape | with ^|
Everything 1.5 will have support for:
Code: Select all
Everything.exe -s* "D:\xyz\" ^| "E:\xyz\" nopath:"ab c" ^| nopath:"d ef"
You'll still need to escape | with ^|