Never used the CLI for it. Will look in to this as well Edit: I don't think 7zip can compare file hashes with the hashes written in a file. Probably needs a script to automate.
I meant, if I have a single text file which contains a list of hashes and I want to read this file and calculate the hashes of some files in a directory and compare them. I want batch operation and the above mentioned scripts by LostED & Paul Mercer work fine.
Obviously it works. My point is that almost anyone has 7zip already installed because its main purpose of compressing and decompressing files. So using it doesn't imply additional SW installed, also doesn't imply that it works on W7+ only or requires PowerShell or other limits. the syntax is pretty straightforward (h calculates hashes, -scrc chooses the checksum algorithm )
Not sure if I did something wrong... I have downloaded these:- And running the CMD file, I got this:- The 19045 end up as 19041:- But 22623 end up okay:-