Search in folder name but ignore subfolders
-
- Posts: 4
- Joined: Thu Feb 14, 2019 3:15 pm
Search in folder name but ignore subfolders
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.
Re: Search in folder name but ignore subfolders
I think you need regular expressions for that:
Try searching for
(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.
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.
Re: Search in folder name but ignore subfolders
Does the following search work for you:
"*RECEIVED REQUESTS\task-*"
"*RECEIVED REQUESTS\task-*"
-
- Posts: 4
- Joined: Thu Feb 14, 2019 3:15 pm
Re: Search in folder name but ignore subfolders
Thanks, but those searches aren't returning anything.
Re: Search in folder name but ignore subfolders
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)
Re: Search in folder name but ignore subfolders
In the Menu > Search only Everything should be selected. Disable all other options there (like Match Path, etc.)
-
- Posts: 4
- Joined: Thu Feb 14, 2019 3:15 pm
Re: Search in folder name but ignore subfolders
That worked - thanks guys.