Search for files where another file with specific name exists

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
nickfbr
Posts: 9
Joined: Tue Sep 07, 2021 4:33 pm

Search for files where another file with specific name exists

Post by nickfbr »

Is it possible to search for a file if another specified file already exists within that directory? For example in a folder where invoice.pdf exists, find the *.csv file. I want to ignore folders where invoice.pdf does not exist. Does that make sense?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for files where another file with specific name exists

Post by void »

To list the folders, please try searching for:

child:invoice.pdf



To list files, you will need Everything 1.5 alpha and the following search:

*.csv fileexists:invoice.pdf


file-exists:
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Search for files where another file with specific name exists

Post by harryray2 »

Useful, I didn't know this one.

Conversely, is it possible to to find a file in a folder where a specific file doesn't exist?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for files where another file with specific name exists

Post by void »

Conversely, is it possible to to find a file in a folder where a specific file doesn't exist?
*.csv !fileexists:invoice.pdf
nickfbr
Posts: 9
Joined: Tue Sep 07, 2021 4:33 pm

Re: Search for files where another file with specific name exists

Post by nickfbr »

Thank you for your response and for an incredible piece of software.
Post Reply