How to list file which same folder than matched files ?

General discussion related to "Everything".
Post Reply
ghost54770
Posts: 8
Joined: Sat Jun 03, 2023 8:36 am

How to list file which same folder than matched files ?

Post by ghost54770 »

Hello everyone

I have a folder with several subfolders. Each subfolder have several image files (image1.jpg, image2.jpg ... imagex.jpg) and a info.txt file.
How to list all "image1.jpg" which same folder than matched info.txt files (matched with content: function)
Also i not want to list matched info.txt

Any idea ?
void
Developer
Posts: 16728
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to list file which same folder than matched files ?

Post by void »

Please try the sibling: search function in Everything 1.5.

sibling: will return files that are a sibling (share the same parent) of the specified filename.

For example:

*.jpg sibling:info.txt
ghost54770
Posts: 8
Joined: Sat Jun 03, 2023 8:36 am

Re: How to list file which same folder than matched files ?

Post by ghost54770 »

sibling work with info.txt name but i don't know how use sibling with info.txt content
Is it possible to search from precedent matched result ?
exemple :
begin with 1000 files (.jpg and .txt)
|
| C: info.txt content:car
v
match 100 files (100 info.txt).
|
| image1.jpg sibling: ???
V
match image1.jpg which have for sibling 100 matched precedent info.txt
void
Developer
Posts: 16728
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to list file which same folder than matched files ?

Post by void »

I don't have a way to do this in Everything yet.

There's includefilelist:"c:\some\folder\info.txt"

However, this only works on a single info.txt at a time..

include-filelist:
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to list file which same folder than matched files ?

Post by NotNull »

Without knowing the details (what is the structure of info.txt, what encoding, etc) a direction for a possible solution.
(not tested on paths with spaces in it; not tetsted on non-ascii characters):

Code: Select all

"c:\starting folder\"   F:=stringcount(UPPER(get_property($path:\info.txt,content)),UPPER($name:))   $F:>0
Post Reply