Exclude Folder / Include Subfolder

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Kitty13
Posts: 4
Joined: Mon Jun 04, 2018 11:30 pm

Exclude Folder / Include Subfolder

Post by Kitty13 »

All -

I know that people have posted about this topic, but it seems that none of those posts had an answer applicable to my situation.

a) I would like to exclude the following folder from my search results:
C:\Program Files (x86)\

b) However, I would like to include the following subfolder in my search results:
C:\Program Files (x86)\TradeStation 9.5\MyWork\Kitty\

In Everything Version 1.4.0.713b (x64) I was able to exclude (a) and include (b) and get results from (b).

I installed Everything Version 1.4.0.713b (x64) on a new machine, but if I exclude (a), I can't get any results from (b) no matter what I do. Would you please help? Thank you!
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Exclude Folder / Include Subfolder

Post by Stamimail »

viewtopic.php?f=4&t=6732#p21197
try to use Options > Indexes > NTFS >
Include only: _____________

and let us know... :)
Kitty13
Posts: 4
Joined: Mon Jun 04, 2018 11:30 pm

Re: Exclude Folder / Include Subfolder

Post by Kitty13 »

Thank you for your kind reply, Stamimail.

I tried your suggestion, but it did not work - perhaps I did not try it correctly. Also, I read the thread that you linked, but the thread was confusing and I was not able to get anything to work.

In the end I did what I probably should have done all along; I installed the old version, and it works well. Thank you again.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude Folder / Include Subfolder

Post by NotNull »

Kitty13 wrote: In the end I did what I probably should have done all along; I installed the old version, and it works well. Thank you again.
Could you tell us how you configured this older version to get this working? We all might learn from that.

Another way that to configure this, is to exclude your Program Files (x86) folder under Menu:Tools > Options > Indexes > Exclude and include the C:\Program Files (x86)\TradeStation 9.5\MyWork\Kitty\ folder under Folder Indexing (don't forget to configure an updte schedule)

That should work with any recent version of Everything.
Last edited by NotNull on Tue Jun 05, 2018 8:15 pm, edited 1 time in total.
Kitty13
Posts: 4
Joined: Mon Jun 04, 2018 11:30 pm

Re: Exclude Folder / Include Subfolder

Post by Kitty13 »

Sure, NotNull. First, thank you for your suggestion. I have filed it away in case I am ever forced to update.

In Version 1.4.0.713b (x64):

a) Tools / Options / Indexes / Exclude: C:\Program Files (x86)
Only thing is I can't remember whether I browsed to the folder or I added the file path as a filter.

b) Tools / Options / Indexes / Folders / Add: C:\Program Files (x86)\TradeStation 9.5\MyWork\Kitty\
I've checked "Attempt to monitor changes" and set to "Update every 6 Hours". Not sure that the preceding checks even matter.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude Folder / Include Subfolder

Post by NotNull »

Thanks for replying!
That's exactly what I suggested (were it not that I made a mistake and typed NTFS instead of Exclude :shock: I've edited my original post to hide this blunder :P )

Anyway ...
Kitty13 wrote: [..]
Only thing is I can't remember whether I browsed to the folder or I added the file path as a filter.
[..]
I've checked "Attempt to monitor changes" and set to "Update every 6 Hours". Not sure that the preceding checks even matter.
- Use path instead of folder
- Your folder settings are perfectly fine (the Attempt to monitor changes and Update every 6 hours). If there is a lot of activity (changes) in this folder, you could shorten the 6 hours to - for example - 10 minutes.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Exclude Folder / Include Subfolder

Post by Stamimail »

I think it should be an easy way to do it with NTFS indexing :!:
void
Developer
Posts: 16844
Joined: Fri Oct 16, 2009 11:31 pm

Re: Exclude Folder / Include Subfolder

Post by void »

Another way that to configure this, is to exclude your Program Files (x86) folder under Menu:Tools > Options > Indexes > Exclude and include the C:\Program Files (x86)\TradeStation 9.5\MyWork\Kitty\ folder under Folder Indexing (don't forget to configure an updte schedule)
Good thinking, unfortunately, the folder index will still be excluded.

One way to do this is to modify your Everything filter:
  • In Everything, from the Search menu, click Organize filters.
  • Select your Everything filter and click Edit....
  • Change the Search to: !"c:\program files (x86)\"|"C:\Program Files (x86)\TradeStation 9.5\MyWork\Kitty\"
  • Click OK.
  • Click OK.
void
Developer
Posts: 16844
Joined: Fri Oct 16, 2009 11:31 pm

Re: Exclude Folder / Include Subfolder

Post by void »

-or-

Please try the following exclude filter:
  • In Everything, from the Tools menu, click Options.
  • Click the Exclude tab on the left.
  • Click Add Filter....
  • Set the filter to the following and click OK:
    regex:^c:\\program files (x86)\\(?!TradeStation 9.5(\\MyWork(\\Kitty)?)?$)
  • Change Exclude files to:
    regex:^c:\\program files (x86)\\[^\\]*$;regex:^c:\\program files (x86)\\TradeStation\\[^\\]*$;regex:^c:\\program files (x86)\\TradeStation\\MyWork\\[^\\]*$
  • Click OK.
Kitty13
Posts: 4
Joined: Mon Jun 04, 2018 11:30 pm

Re: Exclude Folder / Include Subfolder

Post by Kitty13 »

Thank you so much for all of your considered replies.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude Folder / Include Subfolder

Post by NotNull »

void wrote: Good thinking, unfortunately, the folder index will still be excluded.
Oops! :oops: That was actually some bad thinking ... Must have been the heat over here, frying both my braincells. (still trying to deny my stupidity :))
gazorpazorp
Posts: 1
Joined: Tue Sep 28, 2021 10:54 am

Re: Exclude Folder / Include Subfolder

Post by gazorpazorp »

Hi, can this be done in an easier way?
I have the same issue, I want to include a child folder of an excluded (parent) folder.
thanks.
void
Developer
Posts: 16844
Joined: Fri Oct 16, 2009 11:31 pm

Re: Exclude Folder / Include Subfolder

Post by void »

Include all files and use a search instead:

For example:

!"C:\Program Files\" | "C:\Program Files\Everything\"
(this would list only "C:\Program Files\Everything\" under "C:\Program Files\")

If this is useful, consider adding this search as a filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to: Exclude Folder / Include Subfolder
  • Change the Search to: !"C:\Program Files\" | "C:\Program Files\Everything\"
    (let me know the paths you wish to exclude/include if you have trouble setting up this search)
  • Click OK.
(you can even set this search as your Everything filter)

Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
Post Reply