1

not sure why but when I click on synchronize directories, it shows identical files as different.

enter image description here

How do I get these files to not show as different?

  • Well, the files are different sizes so they are not identical. were they created or edited on different operating systems? – EBGreen Mar 28 '18 at 13:35
  • They are identical by content, and I selected the checkbox "by Content". What else can I do so that TC ignores file size? I dont see such option. – monstro Mar 28 '18 at 13:47
  • If they have different line ending characters they are not identical by content. You would not see the difference but a file comparison at the byte level would. I suspect that this is the cause of the issue that you are seeing. Here is an article discussing using Total Commander and comparing files while ignoring line endings. ghisler.ch/board/viewtopic.php?p=264342 Essentially you need to tell TC to use an external file comparison tool and configure that tool to ignore line endings. – EBGreen Mar 28 '18 at 13:55
  • I understand, but as a regular user, I shouldn't bother with all these details, so I understood it is not possible to compare these files properly using TC? only external folder comparison application? – monstro Mar 28 '18 at 14:12
  • I don't use Total Commander so all I can tell you is what is in that link. The creators of Total Commander understood that there are many different way to compare files so they incorporated the ability to use an external program for the comparison. – EBGreen Mar 28 '18 at 14:13
0

Install BeyondCompare (e.g. version 4).
After install for Compare set
- Arguments: %1 %2 /title1=%6 /title2=%7
- Extension: .*

Afterwards you can use it from Total Commander context menu like screenshot shows:

Select Left File For Compare Compare to \"selected left file

  • Beyond Compare costs money – monstro Apr 24 '18 at 12:29
-3

in IT domain knowledge, people compare hash values to decide identical files.

There are few hash methods, the common ones are MD5 and SH1. You can google with keywords: MD5 checksum and / or SH1 checksum

Back to total commander, this website gives you hint how to use total commander add-ons which giving you MD5 / SH1 hash comparison.

http://ghisler.ch/board/viewtopic.php?t=14567&view=next

that is, back to your question, the answer is: do not use compare content. Use hash methods to compare files.

  • 1
    Well, in this case the MD5 and the SH1 (and any other hashing algorithm that I know of) would show the files as different which is not what the OP wants. – EBGreen Mar 28 '18 at 13:51
  • You are missing the point. Using a hash would show the two files as different. The poster wants Total Commander to see the files as the same not different. – EBGreen Mar 28 '18 at 14:12
  • EBGreen, exactly! As on the screenshot I provided, two files are identical by visible content (file size is different, no idea why and dont care), I see the content is the same and I want TC to show these files as identical, is it possible? – monstro Mar 28 '18 at 14:16
  • Yes, according to the link I provided it is possible. You just need to tell Total Commander to use a comparison tool that can ignore line endings. – EBGreen Mar 28 '18 at 14:24
  • @monstro... you need to be careful, the difference may not be at the end of file. It is possible to have non-printable-characters in the middle between for..loop for example... therefore as i wrote above, you need to change how you comparing files – Hongkie Mar 28 '18 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.