Search duplicate with at least one file in a named folder

Discussion related to "Everything" 1.5.
Phlashman
Posts: 59
Joined: Sun Sep 11, 2022 4:57 am

Search duplicate with at least one file in a named folder

Post by Phlashman »

How do i search for duplicates where at least one file is in a named folder and can the named folder use wildcards?

eg, j:;k: ext:mov dupe-from:john dupe:name;size size:>50mb

I want to find duplicate .mov files of at least 50MB on drive j: or k: where at least one of the files is in a folder path that include "john" in its name

I couldn't find help on using dupe-from: ?

Thanks

Version 1.5.0.1413b (x64)
tuska
Posts: 1406
Joined: Thu Jul 13, 2017 9:14 am

Re: Search duplicate with at least one file in a named folder

Post by tuska »

Phlashman wrote: Thu Jul 16, 2026 12:26 am I couldn't find help on using dupe-from: ?
dupe-from:<folder-path>
void
Developer
Posts: 20041
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search duplicate with at least one file in a named folder

Post by void »

Please try the following search:

eg, j:;k: ext:mov dupe-from:**john** dupe:name;size size:>50mb


dupe-from:**john**
will match john anywhere in the full path.

dupe-from:
Phlashman
Posts: 59
Joined: Sun Sep 11, 2022 4:57 am

Re: Search duplicate with at least one file in a named folder

Post by Phlashman »

Thanks for the reply :-)

One more question, what is the difference between *john* and **john** and where do i use either?

is there already a link explaining this?

Thanks again
void
Developer
Posts: 20041
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search duplicate with at least one file in a named folder

Post by void »

* = match any character except \ any number of times
** = match any character any number of times

because we are matching paths, we need to use **
You could use **john* if you want to match john in the last part of the path.

Wildcards
Phlashman
Posts: 59
Joined: Sun Sep 11, 2022 4:57 am

Re: Search duplicate with at least one file in a named folder

Post by Phlashman »

Would *john* find files in "..\xjohnx\filename.ext" as you say * matches "one or more characters other than \" as the * matches x once either side
but it would need ** if the character immediately before or after john was \ in the path?

you have said "You could use "**john* if you want to match john in the last part of the path" do you mean the parent folder of the filename, but doen't that have a \ between the parent folder name and filename or is the \ ignored at the end of path and only exists in fullname?
void
Developer
Posts: 20041
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search duplicate with at least one file in a named folder

Post by void »

would *john* find files in ..\xjohnx\filename.ext
No,
It matches xjohnx, but not ..\xjohnx\filename.ext

You'll need **xjohnx** to match ..\xjohnx\filename.ext


as you say * matches "one or more characters other than \" as the * matches x once either side
but it would need ** if the character immediately before or after john was \ in the path?
Yes, you will need ** to match the \ in the path.


"You could use **john* if you want to match john in the last part of the path" do you mean the parent folder of the filename, but doen't that have a \ between the parent and filename?
Yes, one thing I didn't mention is dupe-from: will match against the full path not just the path part.
So you really want
dupe-from:**john**\*
to match john in the path part
or
dupe-from:**john*\*
to match john in the last path part.