Hi, I'd like to exclude almost all *.lnk files. I say 'almost', because I do have an exception. The exception is that there is a certain folder -- c:\x\ -- for which I want to include all *.lnk files.
How can I do that? Is there an easy way? Thanks!
How to exclude files of a certain extension UNLESS they are in a certain folder?
-
- Posts: 10
- Joined: Mon Sep 05, 2016 4:29 am
Re: How to exclude files of a certain extension UNLESS they are in a certain folder?
To exclude lnk files not in C:\x\
To easily exclude lnk files with your Everything filter:
To create a new filter:
- In Everything, from the Tools menu, click Options.
- Click the Exclude tab on the left.
- Change Exclude files to:
regex:^(?!c:\\x\\).*\.lnk$ - Click OK.
To easily exclude lnk files with your Everything filter:
- In Everything, from the Search menu, click Organize filters....
- Select Everything and click Edit....
- Change the Search to:
!*.lnk | "c:\meta\**.lnk" - Click OK.
- Click OK.
To create a new filter:
- In Everything, from the Search menu, click Add to filters....
- Change the Name to:
Exclude lnk files - Change the Search to:
!*.lnk | "c:\meta\**.lnk" - Click OK.
-
- Posts: 10
- Joined: Mon Sep 05, 2016 4:29 am
Re: How to exclude files of a certain extension UNLESS they are in a certain folder?
Great, I tried the first technique and it worked. Thanks again!