Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
pcitrus
Junior Member
Junior Member
Posts: 35
Joined: 2009-06-22, 21:45 UTC

Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

Post by *pcitrus »

Hello!
Does "Commands->Synchronize dirs..." + selecting "by content" compare byte by byte, or does it calculate the checksum of each file in the folders and compare them?

What exactly does "by content" mean? Does it mean binary comparison?

Does "File->Compare by content" compare byte by byte or compare the checksums?

In Find duplicate files, if I select "by content", does it compare byte by byte or compare the checksums?

If two files have the same content, but the metadata are different, I still consider them identical because I don't care about the metadata. Does TC think they're the same if compared by content?

I've been using fc.exe /b folder1\* folder2\* to compare folders byte by byte but it cannot go recursively so it's been laborious to do this manually for many folders, and 20 TB of data.

Thank you very much!
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

Post by *Horst.Epp »

According to Christian's explanation in another thread:
By content compares the first 128kb byte for byte, and stops on mismatch.

Metadata is part of the binary content of a file.
It doesn't care for your personal preferences.

Comparing file without the metadata needs a compare tool
which has format aware plugins for some file types, like Beyond Compare.
Such tools can be integrated into TC using the CompareTool= entry in WinCmd.ini
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
pcitrus
Junior Member
Junior Member
Posts: 35
Joined: 2009-06-22, 21:45 UTC

Re: Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

Post by *pcitrus »

@Horst.Epp Thank you very much for your reply!

Some of my files are 300GB big. Does TC not check the whole contents of the files byte by byte then if it checks only the first 128kb?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

Post by *Horst.Epp »

pcitrus wrote: 2024-11-12, 16:42 UTC Some of my files are 300GB big. Does TC not check the whole contents of the files byte by byte then if it checks only the first 128kb?
When the first 128kb are identical, the comparison goes on.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

Post by *petermad »

Does TC not check the whole contents of the files byte by byte then if it checks only the first 128kb?
I made a test where I changed one of the last bytes in a 285Kb file, and the Sync tool found the files different.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
pcitrus
Junior Member
Junior Member
Posts: 35
Joined: 2009-06-22, 21:45 UTC

Re: Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

Post by *pcitrus »

@petermad @Horst.Epp
Thank you both so much!
miskox
Member
Member
Posts: 191
Joined: 2003-06-11, 06:00 UTC

Re: Does "by content" mean binary comparison in "Synchronize dir", "File->Compare by content" and "Find"?

Post by *miskox »

pcitrus wrote: 2024-11-12, 16:07 UTC I've been using fc.exe /b folder1\* folder2\* to compare folders byte by byte but it cannot go recursively so it's been laborious to do this manually for many folders, and 20 TB of data.
.bat/.cmd could be used for this task.

Saso
#224551
Post Reply