@echo off
::获取文件md5值
set para1=%~1
set arg="333.txt"
certutil -hashfile %arg% MD5 | find /v ":" > %para1%.md5
set /p md5=<%para1%.md5
echo %md5%
::获取文件大小
FOR %%A IN (%arg%) DO set size=%%~zA
::字节为单位
echo size is: %size%
Windows下批处理脚本获取文件大小,md5值
最新推荐文章于 2023-10-13 22:04:13 发布