How to exclude files of a certain extension UNLESS they are in a certain folder?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
supplementfacts
Posts: 10
Joined: Mon Sep 05, 2016 4:29 am

How to exclude files of a certain extension UNLESS they are in a certain folder?

Post by supplementfacts »

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!
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude files of a certain extension UNLESS they are in a certain folder?

Post by void »

To exclude lnk files not in C:\x\
  • 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.
-or-

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.
-or-

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.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
supplementfacts
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?

Post by supplementfacts »

Great, I tried the first technique and it worked. Thanks again!
Post Reply