Create checksum for directory in windows
1 answer
@echo off
set directory=.
dir /s "%directory%" >"%temp%\filelist"
md5 "%temp%\filelist" >> output.txt
del/q "%temp%\filelist"
- a recursive list of all files in the specified directory is written to a temporary file
(use.
for the current directory,%~1
for the first command line parameter) -
md5
the hash of this file is appended tooutput.txt
in the current directory - temporary file deleted
+1
source to share