Find folders only in root of disk drives, and exclude subfolders?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
SuperDude
Posts: 96
Joined: Thu Sep 25, 2014 7:57 pm

Find folders only in root of disk drives, and exclude subfolders?

Post by SuperDude » Wed Apr 05, 2017 12:10 am

I am trying to search for only folder names that are in the "root directory" of disk drives, while excluding all subfolders and files.

For example, if I have the following folders:

C:\Folder 1
C:\Program Files\Folder 1
D:\Folder 1
D:\Everything\Folder 1
E:\Folder 1
F:\Folder 1

I only want the folder names colored in blue to be displayed in the search results. I want all files to be excluded from the search results list, as well as all subfolders of the :\Folder 1 folders.

I've had limited success using path: and folder: switches. Any help would be appreciated. Thank you.

froggie
Posts: 185
Joined: Wed Jun 12, 2013 10:43 pm

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by froggie » Wed Apr 05, 2017 1:31 am

Try

Code: Select all

<parent:c:|parent:d:> folder:    FOO 

void
Site Admin
Posts: 6075
Joined: Fri Oct 16, 2009 11:31 pm

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by void » Wed Apr 05, 2017 2:59 am

parents:1 should also work:
parents:1 folder:

SuperDude
Posts: 96
Joined: Thu Sep 25, 2014 7:57 pm

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by SuperDude » Wed Apr 05, 2017 12:13 pm

Thank you so much :D

Stamimail
Posts: 761
Joined: Sat Aug 31, 2013 9:05 pm

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by Stamimail » Wed Apr 05, 2017 5:43 pm

Currently the syntax is parent:<path>
<path> parent: for example won't give results.

I'm trying to suggest ways to make it more intuitive.

I think adding a function like:
<path> nosubfolders: (means exclude subfolders)
will be more intuitive.

or
subfolders:
!subfolders:

Also to consideration:

!folder: ==> nofolders:
!file: ==> nofiles:

void
Site Admin
Posts: 6075
Joined: Fri Oct 16, 2009 11:31 pm

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by void » Thu Apr 06, 2017 11:07 am

I've added nosubfolders: to Everything 865b.

The nosubfolders: search function behaves the same as the parent: or infolder: search function.
That is, you must specify the path immediately after nosubfolders:

For example, find files and folders in D:\Music and ignore subfolders, search for:
nosubfolders:d:\music

nosubfolders: without a specified path is too ambiguous.
!folder: ==> nofolders:
!file: ==> nofiles:
Added to Everything 865b.

Stamimail
Posts: 761
Joined: Sat Aug 31, 2013 9:05 pm

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by Stamimail » Thu Apr 06, 2017 3:02 pm

nosubfolders: without a specified path is too ambiguous.
I can understand it, but it makes it really less intuitive.
nosubfolders: like a filter function would be much better.

Maybe to filter the results by (like) sorting the results by Path, and then Everything will get the most Parent Folders Paths, and then Everything will show only those results have one of the most Parent Folders Paths.

eswul62
Posts: 38
Joined: Wed Jul 31, 2013 6:07 am

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by eswul62 » Sat Jan 09, 2021 1:27 pm

Please allow me to use this old thread for the below question.

I'd like to use nosubfolders: on two drives with two parent folders.

nosubfolders:D:\Folder1 works fine
nosubfolders:E:\Folder2 works fine

But how to combine this>

nosubfolders:D:\Folder1|E:\Folder2 (or: (D:\Folder1|E:\Folder2), or D:\Folder1 E:\Folder2) does not work.

Any suggestions?

I simply want to compare these folders. These are very large folders so a compare tool like Beyond Compare is running endlessly.

Thanks!

tuska
Posts: 279
Joined: Thu Jul 13, 2017 9:14 am

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by tuska » Sat Jan 09, 2021 2:42 pm

eswul62 wrote:
Sat Jan 09, 2021 1:27 pm
But how to combine this>
nosubfolders:D:\Folder1|E:\Folder2
(or: (
D:\Folder1|E:\Folder2
), or
D:\Folder1 E:\Folder2
) does not work.
Any suggestions?

Code: Select all

nosubfolders:D:\Folder1\|nosubfolders:E:\Folder2\
parent:D:\Folder1\|parent:E:\Folder2\

eswul62
Posts: 38
Joined: Wed Jul 31, 2013 6:07 am

Re: Find folders only in root of disk drives, and exclude subfolders?

Post by eswul62 » Sat Jan 09, 2021 2:46 pm

Many thanks!!

Super...

Really appreciate the quick answer.

Matter solved.
Again, many thanks!

Post Reply