Search within a search (for dupes)?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
andymbody
Posts: 45
Joined: Fri Nov 25, 2022 7:40 am

Search within a search (for dupes)?

Post by andymbody »

1. Lets say I have a folder on c drive that has 50 files in it.
2. Each file has unique properties (different file types, dates, etc).
3. Is it possible to find the duplicates of these 50 files on another drive? Without having to search for the dupes for each file one-by-one?

Example:
S1. 1st search -> source C:\myfolder\*.*
S2. 2nd search -> find dupes (using hash) of the files in S1, anywhere on D:\ (including sub folders)

I know this is possible with other apps dedicated to finding dupes, but wondered if it's currently possible with EverythingApp.

Thanks!
Andy
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search within a search (for dupes)?

Post by void »

Everything 1.4, no.

Everything 1.5, it's a little complicated, please try the following search:

filelist1: | "d:\" *.* sizefilelist1: dupe:size;sha256

Hold down Ctrl and click the filelist1: text in the search box.
Click Add folder...
Select c:\myfolder\ and click OK.
Click OK.

The sizefilelist1: search will help prevent Everything from finding duplicates from just under D:\
Change *.* to any filter you like, consider an extension list, for example: ext:mp3;mp4;mkv;jpg

Use dupe:size;sha256 to actually find the duplicated files with a matching hash.
Use dupe:size to instantly find duplicated files based on the matching size only.



filelist1:
dupe:
ext:
andymbody
Posts: 45
Joined: Fri Nov 25, 2022 7:40 am

Re: Search within a search (for dupes)?

Post by andymbody »

void wrote: Mon Jan 23, 2023 11:25 am please try the following search:
filelist1: | "d:\" *.* sizefilelist1: dupe:size;sha256
Thank you!
To make it work, I had to use:
filelist1: | "R:\" *.* sizefilelist1: dupe:crc-32

Otherwise it gave erratic results that included unrelated files simply because they matched the file size:
Example:
source file -> AutoHotkey.exe, with file size of 1221kb
matched -> 0564v.jpg, with file size of 1221kb

I get the same thing if I tried to include 2 target drives like this:
filelist1: | "R:\" | "S:\" *.* sizefilelist1: dupe:crc-32

Is this the expected behavior?
Is there a way to prevent this type of result?

Andy
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search within a search (for dupes)?

Post by void »

sizefilelist1: will force Everything to show files from only c:\myfolder\ and "d:\" where the size matches a file from c:\myfolder\

What I think you are seeing is files only your d:\ with the same size as a file in c:\myfolder\
For example: two 0564v.jpg files on your D: drive, even though there's no 0564v.jpg file in c:\myfolder\

Ideally, you would want to search for sha526filelist1:
However, I don't have a function to do this yet.
andymbody
Posts: 45
Joined: Fri Nov 25, 2022 7:40 am

Re: Search within a search (for dupes)?

Post by andymbody »

void wrote: Tue Jan 24, 2023 3:42 am Ideally, you would want to search for sha526filelist1:
However, I don't have a function to do this yet.
Ok... thank you for the explanation! Sizefilelist1 is a huge help in itself! It narrows the list to a manageable length to work with.

Thank you Sir!

Andy
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search within a search (for dupes)?

Post by void »

Another search that might be useful:

<"c:\myfolder\" column1:=A> | <"d:\" column1:=B> *.* dupe:size;sha256;!column1

This will find files with the same size and sha256, but never show these duplicates under the same root folder.

The limitation here is you'll only see one duplicated result from your D: drive. (when there might be two or more)
andymbody
Posts: 45
Joined: Fri Nov 25, 2022 7:40 am

Re: Search within a search (for dupes)?

Post by andymbody »

void wrote: Tue Jan 24, 2023 4:04 am Another search that might be useful:
<"c:\myfolder\" column1:=A> | <"d:\" column1:=B> *.* dupe:size;sha256;!column1
Ok, thank you!
Post Reply