@echo off
color 0a
set n=0
type nul>md5.txt
set /p input= 请输入要进行判断的路径:
echo 正在获取信息......
for /f "delims=" %%i in ('dir /s /b /a-d "%input%"') do set ur=%%i&& call :md5
cls
echo 共处理 %n% 个文件
pause
exit
:md5
set/a n+=1
cls
title 正在处理文件第 %n%个文件 %ur%
echo.正在处理文件第 %n%个文件 %ur%
for /f "tokens=*" %%? in ('md5.exe -n "%ur%"') do (echo %n% %ur%=====%%?>>md5.txt)
goto :eof