@echo off
curl.exe http://10.6.41.192:8888/images/ver.txt > v.txtset /P cv=<cv.txtset /P vv=<v.txtset filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%-V%vv%echo 最新版本%vv%echo 当前版本%cv%if %vv% gtr %cv% (goto L1) else goto L2
:L1
echo 下载安装包 %filename%curl.exe -o %filename%.exe http://10.6.41.192:8888/images/HashCalc.exestart %filename%.exe:L2
echo 结束pause