Duplicate File Search Syntax Help Needed
Duplicate File Search Syntax Help Needed
I'm hoping for some help with the syntax needed to do the following:
I have a folder, let's call it S:\junk
I want to search for all files (prefer to exclude folder names but it doesn't really matter) in S:\junk that have file name and size duplicates anywhere else that Everywhere is indexing, and show search hits that are only duplicates to those in S:\junk, as well as showing the duplicate file in S:\junk, so I can use the sort by Path column and delete the duplicates in the S:\junk folder, leaving behind anything in S:\junk that is the only copy I have of the file. I hope that made sense.
I have a folder, let's call it S:\junk
I want to search for all files (prefer to exclude folder names but it doesn't really matter) in S:\junk that have file name and size duplicates anywhere else that Everywhere is indexing, and show search hits that are only duplicates to those in S:\junk, as well as showing the duplicate file in S:\junk, so I can use the sort by Path column and delete the duplicates in the S:\junk folder, leaving behind anything in S:\junk that is the only copy I have of the file. I hope that made sense.
Re: Duplicate File Search Syntax Help Needed
You'll need Everything 1.5
Please try the following Everything 1.5 search:
Finding duplicates in Everything 1.5
dupe-from:
dupe:
Please try the following Everything 1.5 search:
Code: Select all
dupe-from:"s:\junk" dupe:name;size
Finding duplicates in Everything 1.5
dupe-from:
dupe:
Re: Duplicate File Search Syntax Help Needed
Thanks for the quick reply!
I just tried that, running Everything ver. 1.5.0.1371a (x64), and it gave no search hits.
I should mention that I am 100% certain that many files in S:\junk have duplicates in file name and size elsewhere that Everything has indexed, so it's not just that there aren't any duplicates.
I just tried that, running Everything ver. 1.5.0.1371a (x64), and it gave no search hits.
I should mention that I am 100% certain that many files in S:\junk have duplicates in file name and size elsewhere that Everything has indexed, so it's not just that there aren't any duplicates.
Re: Duplicate File Search Syntax Help Needed
dupe-from: was added in Everything 1.5.0.1384.
Re: Duplicate File Search Syntax Help Needed
It figures! Am I correct in observing that the x64 version of Everything has changed filenames from Everything64.exe to Everything.exe? If so then I just got the newest x64 version.
That code seems to work now!
... at least I think it does, have a lot of files to weed through to be certain. When the "size" syntax is used without a numeric value or measurement unit like KB or MB, does that mean granularity down to the exact byte size or only KB? To ensure the exact same file would or should I add "binary:" to that code?
Thanks!
That code seems to work now!
... at least I think it does, have a lot of files to weed through to be certain. When the "size" syntax is used without a numeric value or measurement unit like KB or MB, does that mean granularity down to the exact byte size or only KB? To ensure the exact same file would or should I add "binary:" to that code?
Thanks!
Re: Duplicate File Search Syntax Help Needed
Everything64.exe was renamed to Everything.exe
Please delete the old Everything64.exe
will match files with a size of exactly 123 bytes.
Please delete the old Everything64.exe
When the "size" syntax is used without a numeric value or measurement unit like KB or MB, does that mean granularity down to the exact byte size or only KB? To ensure the exact same file would or should I add "binary:" to that code?
size:123Re: Duplicate File Search Syntax Help Needed
Yes I was just wondering if using "size" without any numerical value after it, meant an exact byte match or some other rounding off sort of numeric comparison. For example if I had filename.txt that is 1030 bytes and filename.txt that is 1031 bytes, would using just "size" as it was in the code you posted, without a numeric value after "size:", consider them size duplicates? Since you posted only size:123 I must assume it is down to the byte level without having to specify that.
I did fix the everything.exe naming including the shortcut to it and the Tools-Options-General checkmark items that were broken by the file name change, by just un-checkmarking and re-checkmarking them.
I did fix the everything.exe naming including the shortcut to it and the Tools-Options-General checkmark items that were broken by the file name change, by just un-checkmarking and re-checkmarking them.
Last edited by dave9 on Mon Feb 09, 2026 3:55 am, edited 1 time in total.
Re: Duplicate File Search Syntax Help Needed
dupe:sizeRe: Duplicate File Search Syntax Help Needed
Is it possible to do this when a file has the same size but a slightly different name?
eg testing one for this.mp4
testing on fo thi.mp4
eg testing one for this.mp4
testing on fo thi.mp4
Re: Duplicate File Search Syntax Help Needed
No, not possible.
-
ChrisGreaves
- Posts: 821
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Duplicate File Search Syntax Help Needed
Thanks Void. I have done that, fixed the shortcut pinned to my task bar, installed .1404a, ...
Cheers, Chris
Re: Duplicate File Search Syntax Help Needed
Clearly based on my creation of this topic, I am not an expert on search syntax, but in the example you provided, you might want (depending on # of similar files you are indexing in the first place) at least one more attribute (is that the right word to use?) of the files, if not more of them to narrow the hits, then use wildcards in the filename, or only attributes and no filename.harryray2 wrote: Mon Feb 09, 2026 10:50 am Is it possible to do this when a file has the same size but a slightly different name?
eg testing one for this.mp4
testing on fo thi.mp4
For example if you check the size of this.mp4 and find it is 285MB, then could use something like:
Code: Select all
*thi*.mp4 size:285MBCode: Select all
*thi*.mp4 length:42:02Code: Select all
size:285MB length:42:02One example how to use bit rate is add the "Total Bit Rate" through the Tools-Options menu as already described for other file attributes to index, then add this to the code line: bitrate:(number) eg bitrate:2000 or whatever bitrate the example file has.
In other words the more attributes you index for the video file types, the more parameters you can use to limit search hits and/or sort hit results to compare files if you know the syntax to do so.
If even that is not enough, you can right click a column header "add columns" and add a new column header for a checksum column to sort, like choose CRC32 to make sure they are bit-exact duplicates, but that is a CPU performance (and network latency if not stored locally on very fast storage) hit to calculate if you don't need it, especially on potentially large files like videos.
There's probably a simpler way to do it, I always choose the hard way.