Page 1 of 1

Searching for Folders?

Posted: Thu Dec 03, 2009 1:30 am
by viking
I just installed Everything, and I am trying to find all Folders (no files) at a certain level, but not deeper

I tried this:
E:\MainFolder\*\*.

and it shows the folders at the 4th level, but also deeper levels.
How would I only show the folders at the 4th level?

Re: Searching for Folders?

Posted: Thu Dec 03, 2009 4:23 am
by void

Code: Select all

E:\MainFolder\*\* !E:\MainFolder\*\*\*

Re: Searching for Folders?

Posted: Thu Dec 03, 2009 5:17 am
by viking
Great!
Two questions:
1. What is the purpose of the * before E:\ ?
2. Why doesn't the search string also show all the files (at the directory level)?

Re: Searching for Folders?

Posted: Thu Dec 03, 2009 5:31 am
by void
1. What is the purpose of the * before E:\ ?
When dealing with full path wildcard searches it is best to use a * prefix.
The * prefix can be omitted if you specify the full path.
2. Why doesn't the search string also show all the files (at the directory level)?
If you want only folders, try including *. in your search.

Code: Select all

E:\MainFolder\*\* !E:\MainFolder\*\*\* *.
Using *. to match folders is not 100% accurate, you might like to try the latest alpha and use a folder filter.