Exclude a Specific Directory from a Filter

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
capteelingurdian
Posts: 108
Joined: Wed Jul 22, 2020 4:01 pm

Exclude a Specific Directory from a Filter

Post by capteelingurdian »

Hi,

Is there a way to exclude a specific directory from a filter? For example:
C:\Users\user\AppData\Local\Packages\Microsoft.WindowsStore_8we\AC\INetCache\JPXTTYB3

Sincerely,

Captee
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Exclude a Specific Directory from a Filter

Post by void »

To exclude a folder with an Everything filter, please try the following search:

!"C:\Users\user\AppData\Local\Packages\Microsoft.WindowsStore_8we\AC\INetCache\JPXTTYB3\"

! = NOT
Use double quotes to escape spaces.

If you need to exclude more than one folder, use spaces, for example:

!"C:\Users\user\AppData\Local\Packages\Microsoft.WindowsStore_8we\AC\INetCache\JPXTTYB3\" !C:\Windows\ !"c:\program files\"
capteelingurdian
Posts: 108
Joined: Wed Jul 22, 2020 4:01 pm

Re: Exclude a Specific Directory from a Filter

Post by capteelingurdian »

Hi, Void!

Thanks for your reply.

I've got a My Documents filter that uses:

ext:ext:csv;doc;docm;docx;dot;dotm;dotx;epub;java;mobi;odt;pdf;php;ppt;pptm;pptx;rtf;xls;xlsb;xlsm;xlsx;xltm;xltx

Want to include jpg but exclude app data directory

I tried

ext:ext:csv;doc;docm;docx;dot;dotm;dotx;epub;java;mobi;odt;pdf;php;ppt;pptm;pptx;rtf;xls;xlsb;xlsm;xlsx;xltm;xltx;jpg!"C:\Users\user\AppData"

Didn't seem to work right.

What do I need to do?

Sincerely,

Captee
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude a Specific Directory from a Filter

Post by NotNull »

capteelingurdian wrote: Wed Dec 02, 2020 11:35 am What do I need to do?
In this:

Code: Select all

ext:ext:csv;doc;docm;docx;dot;dotm;dotx;epub;java;mobi;odt;pdf;php;ppt;pptm;pptx;rtf;xls;xlsb;xlsm;xlsx;xltm;xltx;jpg!"C:\Users\user\AppData"
1. Remove one ext: from
ext:ext:

2. Add a space between with
;jpg
and
!"C:\Users\user\AppData"
(I used multiple spaces for clarity)

so that you would get:

Code: Select all

ext:csv;doc;docm;docx;dot;dotm;dotx;epub;java;mobi;odt;pdf;php;ppt;pptm;pptx;rtf;xls;xlsb;xlsm;xlsx;xltm;xltx;jpg  !"C:\Users\user\AppData"
capteelingurdian
Posts: 108
Joined: Wed Jul 22, 2020 4:01 pm

Re: Exclude a Specific Directory from a Filter

Post by capteelingurdian »

Hi, NotNull!

Ah! B I N G O ! ! That's got it.

THANK YOU!!! :mrgreen: :mrgreen:

Sincerely,

Captee
Post Reply