How to compare files in different folders with MD5 in command "synchronize directories"?

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
colemanlee
Junior Member
Junior Member
Posts: 22
Joined: 2019-02-27, 15:03 UTC
Location: ghisler.ch
Contact:

How to compare files in different folders with MD5 in command "synchronize directories"?

Post by *colemanlee » 2019-10-04, 14:31 UTC

I have two folders which contain some files with the different file name, but some of them have the same content, like this:
Folder one:
tcmd922ax64.exe
Folder one:
tcmd922ax64-(2).exe
When I use "synchronize directories" to compare these two folders, the two files are different, but the two files' MD5/CRC32 value is the same.
Image: https://i.imgur.com/iQnhTM7.jpg
I want to show files with different MD5/CRC32 value in two folders, not different names, how to do it?
Jeff

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

Re: How to compare files in different folders with MD5 in command "synchronize directories"?

Post by *Dalai » 2019-10-04, 15:40 UTC

TC's Synchronize directories always compares files based on the same name, size and date (unless you tell it to ignore that), and optionally file contents.

In short: You can't do what you intend with this particular TC feature. Maybe create checksum files and compare them (after they're edited to match file names)?

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

User avatar
ts4242
Power Member
Power Member
Posts: 2076
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: How to compare files in different folders with MD5 in command "synchronize directories"?

Post by *ts4242 » 2019-10-04, 19:47 UTC

colemanlee wrote:
2019-10-04, 14:31 UTC
I have two folders which contain some files with the different file name, but some of them have the same content, like this:
Try to search for duplicate files by selecting the both folder> show find files dialog> Advanced tab> ☑ Find duplicate files ☐ same name ☑ same size ☑ same contents

User avatar
colemanlee
Junior Member
Junior Member
Posts: 22
Joined: 2019-02-27, 15:03 UTC
Location: ghisler.ch
Contact:

Re: How to compare files in different folders with MD5 in command "synchronize directories"?

Post by *colemanlee » 2019-10-05, 00:10 UTC

Dalai wrote:
2019-10-04, 15:40 UTC
TC's Synchronize directories always compares files based on the same name, size and date (unless you tell it to ignore that), and optionally file contents.

In short: You can't do what you intend with this particular TC feature. Maybe create checksum files and compare them (after they're edited to match file names)?

Regards
Dalai
Hi Dalai,
Thank you for your explanation. It is better if TC has MD5 compare in "Synchronize directories" :D
Jeff

User avatar
colemanlee
Junior Member
Junior Member
Posts: 22
Joined: 2019-02-27, 15:03 UTC
Location: ghisler.ch
Contact:

Re: How to compare files in different folders with MD5 in command "synchronize directories"?

Post by *colemanlee » 2019-10-05, 00:16 UTC

ts4242 wrote:
2019-10-04, 19:47 UTC
colemanlee wrote:
2019-10-04, 14:31 UTC
I have two folders which contain some files with the different file name, but some of them have the same content, like this:
Try to search for duplicate files by selecting the both folder> show find files dialog> Advanced tab> ☑ Find duplicate files ☐ same name ☑ same size ☑ same contents
Hi,
Thank you for your help, it is a good skill.
But the two folders should in same file window if use the function you provide, we often operate folders in two different file window in fact, then we can't use this skill.
Jeff

User avatar
Usher
Senior Member
Senior Member
Posts: 456
Joined: 2011-03-11, 10:11 UTC

Re: How to compare files in different folders with MD5 in command "synchronize directories"?

Post by *Usher » 2019-10-05, 00:50 UTC

You can go inside of needed directories (folders), then press Alt+F7 and add manually more directories separated with semicolon to the "Search in" field, for example:

Code: Select all

C:\dir1\subdir2;D:\dir3\subdir4;E:\dir5\subdir6
You can find more details in TC Help.
Regards from Poland
Andrzej P. Wozniak

User avatar
ts4242
Power Member
Power Member
Posts: 2076
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: How to compare files in different folders with MD5 in command "synchronize directories"?

Post by *ts4242 » 2019-10-05, 01:56 UTC

You can also search in a list of predefined directories saved in text file
TC help wrote:Search in:
Here you can enter one or more starting directories, separated by ";". You can now start the search inside an archive.
You can enter the name of a text file (ANSI, UTF-8 or UTF-16, the latter two with BOM) containing a list of files and directories to be searched, in the form @c:\path\filelist.txt. The file must contain one file/directory name per line, either an absolute path, or relative to the location of the list file. The text file now also supports wildcards and regular expressions.
Sample list: Description
c:\testdir\ Searches "c:\testdir" for files defined in "search for"
c:\testdir\*.txt *.doc Searches "c:\testdir" for txt and doc files
c:\testdir\<regular expression Searches "c:\testdir" using regular expression
c:\testdir\filename.txt Searches just for "filename.txt" in "c:\testdir"
Put '>' character in this field before saving the search to keep the "Search in" field unchanged when loading the saved search.

Post Reply