How to search only one directory deep?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Specular
Posts: 11
Joined: Sat Dec 27, 2014 5:46 am

How to search only one directory deep?

Post by Specular »

So I read the docs and found this section:
Limit the search to a single folder:

Code: Select all

c:\windows\ !c:\windows\*\*
I'd like to be able to search only one directory deep. This is the code I'm currently using for an 'Apps' search filter:

Code: Select all

<"C:\Portable Apps\"|"C:\Program Files\"|"C:\Program Files (x86)\"> .exe
However after trying to exclude sub directories deeper than one deep it failed. Tried !"C:\Program Files\*\*" but it filters out everything.

How can I create a filter that only searches one directory deep?
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to search only one directory deep?

Post by therube »

Limit the search to a single folder:

Code: Select all

c:\windows\ !c:\windows\*\*
Note that the ! is an ! (exclamation, aka a NOT) not a | ("bar", aka OR).

I'd like to be able to search only one directory deep. This is the code I'm currently using for an 'Apps' search filter:

Code: Select all

<"C:\Portable Apps\"|"C:\Program Files\"|"C:\Program Files (x86)\"> .exe
Try

Code: Select all

<"C:\Portable Apps\"|"C:\Program Files\"|"C:\Program Files (x86)\">   parents:3   .exe
(:3 is probably what you're after [in this case] rather then :2)
Specular
Posts: 11
Joined: Sat Dec 27, 2014 5:46 am

Re: How to search only one directory deep?

Post by Specular »

Ah, the parents: parameter is just what I'm looking for! Cheers :)
Post Reply