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: 20
Joined: Sat Jun 28, 2014 2:37 pm

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

Post by dwilbank » Thu May 14, 2020 10:21 pm

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
Site Admin
Posts: 5366
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Fri May 15, 2020 7:49 am

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

parent: requires a fully qualified path, eg c:\windows

dwilbank
Posts: 20
Joined: Sat Jun 28, 2014 2:37 pm

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

Post by dwilbank » Fri May 15, 2020 1:40 pm

never thought to use wildcards - oh the possibilities!

thanks!

w64bit
Posts: 59
Joined: Wed Jan 09, 2013 9:06 am

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

Post by w64bit » Fri May 15, 2020 6:43 pm

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: 2537
Joined: Thu Sep 03, 2009 6:48 pm

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

Post by therube » Fri May 15, 2020 7:21 pm

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
Site Admin
Posts: 5366
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Mon May 18, 2020 1:25 am

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