certutil command to generate hash values for multiple files
The Tip of the Night for December 5, 2015, discussed how to use the certutil command in Windows to generate a hash value for a specific file. You can also use the below script, first posted here, to generate a list of hash values for multiple files in a single folder
for %F in (*) do @certutil -hashfile "%F" MD5 | find /v "hashfile command completed successfully" >>list.txt
![](https://static.wixstatic.com/media/af7fa4_2bae4951bd4b4a8cbafde6a721e5cec1~mv2.png/v1/fill/w_49,h_12,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/af7fa4_2bae4951bd4b4a8cbafde6a721e5cec1~mv2.png)
After entering command prompt, use the cd command to change the directory to the folder containing the files you need to process. Simply enter this script and then press return. A new file will be generated like this:
![](https://static.wixstatic.com/media/af7fa4_e99696552a894deba008ad2b2892fec8~mv2.png/v1/fill/w_53,h_37,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/af7fa4_e99696552a894deba008ad2b2892fec8~mv2.png)
certutil can also generate SHA1 and SHA256 hash values. Sadly, this script as written will not give you the hash values for the files saved in subdirectories.