search for all files which are in any subfolder named "foo"

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
dwilbank
Posts: 29
Joined: Sat Jun 28, 2014 2:37 pm

search for all files which are in any subfolder named "foo"

Post by dwilbank »

The n: drive has hundreds of sub folders at various depths, named "CD 2".
How to search for all mp3 files in those particular folders?

Code: Select all

n: .mp3 parent:"CD 2"
isn't doing it for me!
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: search for all files which are in any subfolder named "foo"

Post by void »

Please try the following search:
n: "*\cd 2\*.mp3"

parent: requires a fully qualified path, eg c:\windows
dwilbank
Posts: 29
Joined: Sat Jun 28, 2014 2:37 pm

Re: search for all files which are in any subfolder named "foo"

Post by dwilbank »

never thought to use wildcards - oh the possibilities!

thanks!
w64bit
Posts: 253
Joined: Wed Jan 09, 2013 9:06 am

Re: search for all files which are in any subfolder named "foo"

Post by w64bit »

Sorry I intervene with a question.
This is listing also the files in all subfolders of "cd 2".
How to list the mp3 files locate only in the "cd 2" subfolders?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: search for all files which are in any subfolder named "foo"

Post by therube »

To find directories, that include in their name, "CD 2", that contain .mp3 files, you can use child:.

child:mp3 "cd 2"

Code: Select all

X:\_MUSIC\___fromC\Accordeon Hits\Accordeon Hits CD 2
M:\___fromC\R.E.M\Live (2007)\Cd 2
M:\_A#1\David Bowie\Platinum Collection\CD 2
M:\_A#1\Trans-Siberian Orchestra\Trans-Siberian Orchestra - Night Castle\CD 2
M:\fun\Harry Nilsson - Anthology - Personal Best\cd 2
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: search for all files which are in any subfolder named "foo"

Post by void »

To find files directly in folder called cd 2:

Please try regex:
regex:"\\cd 2\\[^\\]*\.mp3$"

"" = use double quotes to escape spaces.
\\ = match a literal \
cd 2 = match the parent folder called cd 2
[^\\] = match any character except \
* = match the previous element any number of times.
\. = match a literal .
mp3 = match the literal: mp3
$ = match the end of the filename.
Post Reply