Posted November 18, 2021

By looking at http://www.slavasoft.com/fsum/ I, again, do not really understand hot to construct the command I need.
Can you show me a working command to verify files located in FOLDER1 and FOLDER2 from my example?
BTW: When checking these utilities additional question comes to my mind: is md5 checksum "enough" to verify locally stored files or I should move to something like sha to reach better "reliability"? And then: which one? There are multiple versions of sha.
check_md5.bat:
fsum -md5 -c -jf -dFOLDER1 file1.md5
fsum -md5 -c -jf -dFOLDER2 file2.md5
fsum -md5 -c -jf -dFOLDER3 file3.md5
(with the option -jf it prints only failed lines)
And for the scenario with checking different folders after some weeks you have to create multiple batch files to do so.
The md5 and sha1 checksums are outdated because they are insecure. The current standard is sha256. If you want to use sha256 then the format of sha256 files created by Total Commander is incompatible with Fsum.
Total Commander creates:
sha256sum *file.abc
Fsum wants this format:
sha256sum ?SHA256*file.abc
With sha256sum the batch file looks like this:
check_sha256.bat:
fsum -sha256 -c -jf -dFOLDER1 file1.sha256
fsum -sha256 -c -jf -dFOLDER2 file2.sha256
fsum -sha256 -c -jf -dFOLDER3 file3.sha256
Post edited November 18, 2021 by toma85