How to exclude two but include two Folder from the es

General discussion related to "Everything".
Post Reply
wu_yi
Posts: 10
Joined: Sun Dec 26, 2021 2:16 am

How to exclude two but include two Folder from the es

Post by wu_yi »

I want to search folder in es.exe,What should I do?
for example:
c:only include two folder
c:\test1 inlude
c:\test2 inlude
d:only exclude two folder
d:\test1 exclude
d:\test1 exclude
Input es.exe c:\test1|c:\test2|!d:\test1|!d:\test2
it search others folders likes c:\tmp in results
void
Developer
Posts: 16734
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude two but include two Folder from the es

Post by void »

Please try the following search:

es.exe c:\test1\^|c:\test2\ !d:\test1\ !d:\test2\


Everything will treat this as:
(c:\test1\ OR c:\test2\) AND NOT d:\test1\ AND NOT d:\test2\


Note: Use ^| to escape the | from a command prompt (or use | inside double quotes: "c:\test1\|c:\test2\" ).
Post Reply