How to get MD5 hash only (Batch Script)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sonelkim
Posts: 1
Joined: 05 May 2021 17:49

How to get MD5 hash only (Batch Script)

#1 Post by sonelkim » 05 May 2021 17:52

I'm writing a batch script that will check the MD5sum of all files in a folder

for /r %%f in (*) do (certutil -hashfile "%%ff" MD6) >> output.txt

This one is working but any idea how can I get the hash only, without the other text

Those text highlighted in yellow only

Image

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: How to get MD5 hash only (Batch Script)

#2 Post by Squashman » 05 May 2021 20:39

So you failed to search Stack overflow for an answer to your question.
https://stackoverflow.com/questions/674 ... tch-script
And you failed to search our forum here as well.
viewtopic.php?t=7592

Post Reply