How to inside the 'Exclude' page (Options) exclude a folder, but not all of it?
-
- 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?
For example if I want to exclude all of 'C:\', except for 'C:\Users\David'
Re: How to inside the 'Exclude' page (Options) exclude a folder, but not all of it?
Use regex negative lookahead.
To exclude c:\ except c:\users\David:
Alternatively, include only C:\users\David:
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.
-
- 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?
This worked, thanks!