
CODE: [Copy to clipboard]@echo off
::计算文件CRC32码
if not exist "%~1" (exit/b)
set "n=%RANDOM%"
rar.exe a "%temp%\%n%.rar" "%~1" >nul 2>nul && (for /f "tokens=8 delims= " %%? in ('"rar l "%temp%\%n%.rar"|findstr "%~nx1""') do (echo CRC32:%%?)) || (echo 未检测到)
del "%temp%\%n%.rar" >nul 2>nul
pause
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |