Search in folder name but ignore subfolders

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
wasteland57
Posts: 4
Joined: Thu Feb 14, 2019 3:15 pm

Search in folder name but ignore subfolders

Post by wasteland57 »

I'm trying to search for files named TASK-* in any folder named "RECEIVED REQUESTS" but not in subfolders of "RECEIVED REQUESTS". Any way to do this? I can't get it to work. Thanks.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Search in folder name but ignore subfolders

Post by NotNull »

I think you need regular expressions for that:

Try searching for
regex:"^.*\\RECEIVED REQUESTS\\[^\\]*$" TASK-

(not tested ..)

Explanation: search for a folder "RECEIVED REQUESTS", preceded by anything and followed by anything but a "\" (which matche files in that folder, but not subdirectories). Encolde your regular expression in "" because your foldername hase a space in it.
void
Developer
Posts: 16684
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search in folder name but ignore subfolders

Post by void »

Does the following search work for you:
"*RECEIVED REQUESTS\task-*"
wasteland57
Posts: 4
Joined: Thu Feb 14, 2019 3:15 pm

Re: Search in folder name but ignore subfolders

Post by wasteland57 »

Thanks, but those searches aren't returning anything.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Search in folder name but ignore subfolders

Post by tuska »

Code: Select all

*\"RECEIVED REQUESTS" !\"RECEIVED REQUESTS"\*\* Task-*
:?:

References:
viewtopic.php?p=24298#p24298
viewtopic.php?p=24743#p24743 - Understanding syntax of \*\*

________________________________________________
Windows 10 Pro (x64) Version 1809 (Build 17763.316)
Intel(R) Core(TM) i7-4770 CPU @ 3.4OGHz, 16 GB RAM
Everything - Version 1.4.1.935 (x64)
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Search in folder name but ignore subfolders

Post by NotNull »

In the Menu > Search only Everything should be selected. Disable all other options there (like Match Path, etc.)
wasteland57
Posts: 4
Joined: Thu Feb 14, 2019 3:15 pm

Re: Search in folder name but ignore subfolders

Post by wasteland57 »

That worked - thanks guys.
Post Reply