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.
Find folders only in root of disk drives, and exclude subfolders?
-
- Posts: 96
- Joined: Thu Sep 25, 2014 7:57 pm
-
- Posts: 132
- Joined: Wed Jun 12, 2013 10:43 pm
Re: Find folders only in root of disk drives, and exclude subfolders?
Try
Code: Select all
<parent:c:|parent:d:> folder: FOO
-
- Site Admin
- Posts: 4994
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Find folders only in root of disk drives, and exclude subfolders?
parents:1 should also work:
parents:1 folder:
parents:1 folder:
-
- Posts: 96
- Joined: Thu Sep 25, 2014 7:57 pm
Re: Find folders only in root of disk drives, and exclude subfolders?
Thank you so much 

-
- Posts: 701
- Joined: Sat Aug 31, 2013 9:05 pm
Re: Find folders only in root of disk drives, and exclude subfolders?
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:
<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:
-
- Site Admin
- Posts: 4994
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Find folders only in root of disk drives, and exclude subfolders?
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.
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.
Added to Everything 865b.!folder: ==> nofolders:
!file: ==> nofiles:
-
- Posts: 701
- Joined: Sat Aug 31, 2013 9:05 pm
Re: Find folders only in root of disk drives, and exclude subfolders?
I can understand it, but it makes it really less intuitive.nosubfolders: without a specified path is too ambiguous.
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.