@echo off
color 0A
:start
::cls
echo 请输入文件路径:
set /p srcfile=
if not exist "%srcfile%" echo 文件不存在,请重新输入!!&goto :start
if exist "%srcfile%\.\" echo 你输入的是目录,请输入文件路径!!&goto :start
echo 正在计算,请稍候 ...
CertUtil -hashfile %srcfile% MD5
pause
标签:goto,start,windows,srcfile%,echo,批处理,exist,输入,md5
From: https://www.cnblogs.com/txtp/p/17043171.html