0 votes

Ignore (or select?) all files/paths which contain a specific sub-folder or wild-card folder

For example, I want to exclude files/paths containing \user\ or \swset\ or \cache\, etc. no matter where the names occur in the full path.
I don't know the rest of each path, or where the excluded sub-folder occurs within it.

Basically, can I do something like this:

!c:\\*\sub1\\*;!c:\temp\\*\sub2\\*;

where I eliminate any path with 'sub1' or 'sub2' in it?

Thank you much
glhhuk

by (35 points)

1 Answer

0 votes
 
Best answer

You can use location filters to include or exclude paths with certain text, e.g.

C:\;-sub1;-sub2

Will search C:\ but exclude any path that has either 'sub1' or 'sub2' in the path.

You can so something similar to include paths, e.g.

C:\;+program

Will search C:\ but only include paths that have 'program' somewhere in the path.

by (34.6k points)
Thank you very much!  Works like a charm.  So simple, yet escaped me ;)
...