I am writing a batch file and I need it to verify a file\'s MD5 hash before continuing on with the script. For example:
@echo off if MD5 equ 79054025255fb1a2
try with MD5.BAT :
set "file=c:\myfile.ext" call md5.bat "%file%" md5 if "%md5%" equ "79054025255fb1a26e4bc422aef54eb4" ( echo MD5 identical! ) else ( echo MD5 does not match. )