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: 221
Joined: Thu Sep 25, 2014 7:57 pm

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

Post by SuperDude »

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: 300
Joined: Wed Jun 12, 2013 10:43 pm

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

Post by froggie »

Try

Code: Select all

<parent:c:|parent:d:> folder:    FOO 
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

parents:1 should also work:
parents:1 folder:
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

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

Post by SuperDude »

Thank you so much :D
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

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

Post by Stamimail »

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
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

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: 1122
Joined: Sat Aug 31, 2013 9:05 pm

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

Post by Stamimail »

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: 127
Joined: Wed Jul 31, 2013 6:07 am

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

Post by eswul62 »

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: 1052
Joined: Thu Jul 13, 2017 9:14 am

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

Post by tuska »

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: 127
Joined: Wed Jul 31, 2013 6:07 am

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

Post by eswul62 »

Many thanks!!

Super...

Really appreciate the quick answer.

Matter solved.
Again, many thanks!
Post Reply