[1.5a][1383a] Why is this query wrong? c: !path:"Windows**"|"Program**"|"Users**"

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
rgbigel
Posts: 41
Joined: Sun Apr 17, 2011 4:00 pm

[1.5a][1383a] Why is this query wrong? c: !path:"Windows**"|"Program**"|"Users**"

Post by rgbigel »

trying to exclude all System-Related Folders (subset of my query below:)

c: !path:"Windows**"|"Program**"|"Users**"|"System Volume Information**"

- It returns folders, almost as if I did not use the ! (NOT does the same thing).
- using quotes or not does not change anything.
- if I remove ! , it shows about 580,000 files, with ! it shows 780,000 files, with !! it shows 580,000 files.
- when I use "folders:" instead of "path:" it shows similar, but not identical numbers of files.
- removing one or two of the asterisks results in different numbers, but never what I want.
- OK, I tried to enclose the OR-expression entirely in "()" -- does not work either.

What I essentially wanted is to exclude All Folders/paths and their subdirectories with "Windows" etc. in it, but I do get:
Windows.old\...
Program Files\...
Program Files (x86)\...
users\...

I do not get "System Volume Information" which is even more bizarre, because it works as expected when I only select this item without NOT, so Everything does see that.

I assume it has something to do with the | (OR) not working as expected.
I then thought the OR operator might be || , which it is not, but strangely it does not change anything compared to a single |

OK, tried to avoid the OR and did AND with !path: for each folder, which does work:

c: !path:\Windows** !path:"System Volume Information**" !path:"Program**" !path:"Users**"

except that the drive c: is there, which I don't want, but I have not found a way to suppress.

Any ideas for not getting the folder "C:\$Recycle.Bin" and its sub-folders? "c: !path:^$**" does not do it, nor $$**, and $** gets those with Dollars in the middle as well.

I am at loss about the syntax here. Specifically, the need for excaped characters is not uniform across Everything.

Or, is there something I need to change in Everything.ini? -- The number of potential entries is very high, and each one requires a lot of analysis.

None the less: thanks for the millions of things working so wonderfully in this Version
therube
Posts: 4952
Joined: Thu Sep 03, 2009 6:48 pm

Re: [1.5a][1383a] Why is this query wrong? c: !path:"Windows**"|"Program**"|"Users**"

Post by therube »

Try grouping. So something along the lines of:

c: !path:<"Windows**"|"Program**"|"Users**"|"System Volume Information**">


It looks like path: does not take | or ;
so something like !path:Windows**|Program** or !path:Windows**;Program**
won't work.
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: [1.5a][1383a] Why is this query wrong? c: !path:"Windows**"|"Program**"|"Users**"

Post by void »

therube has the correct answer.

path: is a search modifier.



Most functions will support a semicolon delimited list of search terms.

Please try pathpart:

!pathpart:Windows**;Program**;Users**;"System Volume Information**"




path:
pathpart:
Post Reply