Find duplicates in specific folders (no matter the filename)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ericthibeault
Junior Member
Junior Member
Posts: 9
Joined: 2015-08-16, 15:20 UTC

Find duplicates in specific folders (no matter the filename)

Post by *ericthibeault »

Hi,

I'm using the search tool with find duplicate and it's working good. But know I want to be more precise and find duplicate in 2 specific folders.

I tried having both folder in left and right pane and make a synchronize dir, but the find duplicate option in sync dir doesn't allow me to find duplicate "without the same name". I only want to find duplicates by content, no matter its name.

Other thing I tried is to use the search tool and the find duplicate in advanced tap, unchecking "by name" and only checking "by content", but it doesn't seem to be possible to search only in two specific folder, only one (in the "search for" field).

Anybody knows how I can do this?

Thanks a lot
User avatar
Dalai
Power Member
Power Member
Posts: 10018
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

This is really simple: mark the two directories you want to search for duplicates in (e.g. Insert key, right mouse button, Space key or whatever). Then open search (Alt+F7) and check
[x] Find duplicate files,
[x] same size (optional) and [x] same contents.
Start search. That's it.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
ericthibeault
Junior Member
Junior Member
Posts: 9
Joined: 2015-08-16, 15:20 UTC

Post by *ericthibeault »

Thanks Dalai,

But it seems that it doesn't work the way you tell me.

I did some tests and if in the same pane (either left or right) I select two folders that has suspected duplicate, your procedure works.

But when I try to have the same folders one in left pane and one in right pane, and I select them, the same procedure gives me a "not found".

So, how can I check for duplicates in two different folders that needs to be in the left and right pane because they don't have the same parent folder (different drives...)

Thanks
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Re: Find duplicates in specific folders (no matter the filen

Post by *milo1012 »

ericthibeault wrote:I want to be more precise and find duplicate in 2 specific folders.
So from my understanding:
You just want to start TC's search dialog with both current paths as search start locations, the one currently in TC's left side, and the one currently in TC's right side?

For that you can manually add paths to Search in in TC's search dialog, separated by a semicolon character (also documented in TC's help).
But to make it more comfortable:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE%
/O /S=F "%P;%T"
wcmicons.dll,47
Start search with both current paths preselected


-1
Select all of the above and copy it (to clipboard).
Now right click in TC's buttonbar on a (free) spot, and select "paste".

Now when you click that newly created button, a search dialog will start, with both paths preselected.
So now you can, as usual, select your find duplicate options and simply start the search.
TC plugins: PCREsearch and RegXtract
User avatar
Dalai
Power Member
Power Member
Posts: 10018
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I don't see how this could work when you have directories in both panels. The search always works for the active panel, of course. If your directories are on the same partition, you can search for duplicates there, which can be time-consuming, of course.

If the directories have the same structure, you could use TC's sync tool. But you said, they're not. So, I don't see any way to do this with TC, and I don't know if there's any tool that can do something like this.

ADD:
Hm, milo's suggestion may indeed work, though I don't know if TC considers the marking of the directories to search in.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
ericthibeault
Junior Member
Junior Member
Posts: 9
Joined: 2015-08-16, 15:20 UTC

Post by *ericthibeault »

Thanks a lot. I'll try that.
ericthibeault
Junior Member
Junior Member
Posts: 9
Joined: 2015-08-16, 15:20 UTC

Post by *ericthibeault »

Hi,

Milo's solution works like a charm!

Thanks a lot, it'll really help me on my task. ;)

Regards
kes
Junior Member
Junior Member
Posts: 19
Joined: 2007-08-03, 03:10 UTC

Post by *kes »

Milo's button works. thanks. Just be nice to have the search advanced box preconfigured to Duplicates, same size, same content as well then all you'd have to do is ENTER and away it would go.

Any ideas anybody?
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

kes wrote: Just be nice to have the search advanced box preconfigured to Duplicates, same size, same content as well then all you'd have to do is ENTER and away it would go.
Create a new search template, e.g. "_duplicates"

by using Alt+F7, removing the preselected search path, selecting your desired "find duplicates" options,
and finally saving the preset in the save/load tab with the name "_duplicates".

Now modify the button:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE%
/O /S=F:L"_duplicates" "%P;%T"
wcmicons.dll,47
Start search with both paths preselected and "find duplicates" preset


-1
TC plugins: PCREsearch and RegXtract
ericthibeault
Junior Member
Junior Member
Posts: 9
Joined: 2015-08-16, 15:20 UTC

Post by *ericthibeault »

Thanks Milo and thanks Kes for the suggestion
kes
Junior Member
Junior Member
Posts: 19
Joined: 2007-08-03, 03:10 UTC

Post by *kes »

Just the job. Thanks
milo1012 wrote:
kes wrote: Just be nice to have the search advanced box preconfigured to Duplicates, same size, same content as well then all you'd have to do is ENTER and away it would go.
Create a new search template, e.g. "_duplicates"

by using Alt+F7, removing the preselected search path, selecting your desired "find duplicates" options,
and finally saving the preset in the save/load tab with the name "_duplicates".

Now modify the button:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE%
/O /S=F:L"_duplicates" "%P;%T"
wcmicons.dll,47
Start search with both paths preselected and "find duplicates" preset


-1
Post Reply