How to find folders within folders?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
dwilbank
Posts: 18
Joined: Sat Jun 28, 2014 2:37 pm

How to find folders within folders?

Post by dwilbank » Fri Sep 27, 2019 4:25 am

I want to search a whole drive for folders that are children of other folders (or folders which contain other folders).
(Trying to make this particular drive have no hierarchies more than 1 folder deep).

It seems like the best way to do this is to search for folders that are children of other folders.

but I can't find the correct combination of folder: and child: to make it work.

Help - how?

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

Re: How to find folders within folders?

Post by NotNull » Fri Sep 27, 2019 9:56 am

dwilbank wrote:
Fri Sep 27, 2019 4:25 am
(Trying to make this particular drive have no hierarchies more than 1 folder deep).
Everything also has the depth: function.

Code: Select all

folder:   depth:>1
should give you all folders that 2 levels deep or more from the root (C:\)


If you want to get all folders that are 2 levels deep or more compared to a folder - let's say "c:\program files\" - you can use the parent: function: ("!" means NOT)

Code: Select all

folder:   !parent:"c:\program files\"    "c:\program files\"
( = get all folders that are below "c:\program files", but not the ones that are in "c:\program files" itself)

You can find more about these functions here.

dwilbank
Posts: 18
Joined: Sat Jun 28, 2014 2:37 pm

Re: How to find folders within folders?

Post by dwilbank » Fri Sep 27, 2019 12:52 pm

Thank you notnull - :depth was the ticket!

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

Re: How to find folders within folders?

Post by NotNull » Fri Sep 27, 2019 1:50 pm

You're welcome :)
(thanks for your feedback!)

Post Reply