@echo off&mode con lines=3000
rem 獲取當前目錄裏指定擴展名文件的md5值和哈希值
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
for /f "delims=" %%a in ('dir /a-d-h/b *.iso') do (
echo;"%%a"
(for %%b in (md5 sha1 sha256 sha512) do (
set "hash="
for /f "skip=1 delims=" %%c in ('certutil -hashfile "%%a" %%b') do (
if not defined hash set hash=%%c
)
setlocal enabledelayedexpansion
echo;%%b:!hash!
endlocal
))>"%%~na.txt"
)
echo;%#% +%$%%$%/%@% %z%
pause
exit