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

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
colemanlee
Junior Member
Junior Member
Posts: 37
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 »

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?
Total Commander
User avatar
Dalai
Power Member
Power Member
Posts: 9386
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 »

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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ts4242
Power Member
Power Member
Posts: 2081
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 »

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: 37
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 »

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
Total Commander
User avatar
colemanlee
Junior Member
Junior Member
Posts: 37
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 »

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.
Total Commander
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher »

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.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ts4242
Power Member
Power Member
Posts: 2081
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 »

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