How to inside the 'Exclude' page (Options) exclude a folder, but not all of it?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Oblomov228
Posts: 8
Joined: Sun Nov 17, 2019 9:57 pm

How to inside the 'Exclude' page (Options) exclude a folder, but not all of it?

Post by Oblomov228 »

For example if I want to exclude all of 'C:\', except for 'C:\Users\David'
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to inside the 'Exclude' page (Options) exclude a folder, but not all of it?

Post by void »

Use regex negative lookahead.

To exclude c:\ except c:\users\David:
  • In Everything, from the Tools menu, click Options.
  • Click the Exclude tab on the left.
  • Click Add filter....
  • Set the filter to:
    regex:C:\\(?!Users($|\\David($|\\)))
  • Click OK.
  • Set exclude files to:
    regex:C:\\(?!Users($|\\David($|\\)))
  • Click OK.


Alternatively, include only C:\users\David:
  • In Everything, from the Tools menu, click Options.
  • Click the NTFS tab on the left.
  • Select your C: drive.
  • Set Include only to:
    C:\Users\David
  • Click OK.
Oblomov228
Posts: 8
Joined: Sun Nov 17, 2019 9:57 pm

Re: How to inside the 'Exclude' page (Options) exclude a folder, but not all of it?

Post by Oblomov228 »

This worked, thanks!
Post Reply