Windows – How to generate MD5 hash value for multiple files in a folder using cmd

checksumcmd.exehashingwindows 7

As mentioned in this page,
the command:

CertUtil -hashfile yourFileName MD5

can be used
to obtain the MD5 hash value for a particular file.

How can I find the MD5 hash values for multiple files in a folder using cmd?

Best Answer

You could use the following script:

for %%f in (*) do (
certutil -hashfile "%%f" MD5
)