How to hide folders from a search?

General discussion related to "Everything".
Post Reply
ftgp
Posts: 5
Joined: Wed Mar 09, 2022 8:24 pm

How to hide folders from a search?

Post by ftgp »

I'm trying to figure it out how to do it
I want to search for a folder and its subfolder and see all the files but dont want to see the folders itself
I know how to exclude things from the search but didnt found out how to exclude folders from the search
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to hide folders from a search?

Post by void »

Prefix a folder search with the NOT operator: !


For example, to exclude C:\Program Files, search for:

!"c:\program files\"


For example, to exclude C:\Program Files, C:\Program Files (x86) and C:\windows search for:

!"c:\program files\" !"c:\program files (x86)\" !c:\windows\
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to hide folders from a search?

Post by raccoon »

ftgp wrote: Tue Mar 15, 2022 3:00 am I want to ... see all the files but dont want to see the folders itself
... how to exclude folders from the search?
To exclude folder objects from appearing in the search results, use the syntax verb files:, or the negated !folders:.

Examples:

e:\media\ !folders:
files: C:\Users\
Last edited by raccoon on Tue Mar 15, 2022 3:27 am, edited 1 time in total.
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to hide folders from a search?

Post by void »

I want to search for a folder and its subfolder and see all the files but dont want to see the folders itself
Please include a trailing path separator (\) at the end of the path search.

For example:

"C:\Program Files\"



Without the trailing backslash (\), a search for "C:\Program Files" would match the "C:\Program Files" folder and possibly other folders such as "C:\Program Files 2" or "c:\program files (x86)".
Post Reply