搞定了,
txt是因为里面没内容0kb(具体为啥呢)
第一个文件是因为变量延迟的问题。- @echo off
- echo 正在处理,不要急慢慢等......
- :LOOP
- IF %1 NEQ '' (for /f %%i in ('certutil -hashfile %1 ^| findstr /v CertUtil ^| finDstr /v SHA1') do (set b=%%i )
- echo aliyunpan://%~nx1^|%b:~0,-1%^|%~z1^|application/oct-stream>>sha1.txt
- ) else (goto END)
- SHIFT
- GOTO LOOP
- :END
- msg * "全部搞定了"
复制代码 我是一次拉3个文件,结果是这样的,hdev文件第一个有问题,换了下顺序还是第一个有问题。txt文件全挂。
不知道什么原因,想请大佬分析下。
- aliyunpan://16-3.hdev|~0,-1~z1|application/oct-stream
- aliyunpan://15-1.hdev|b496a0d1f37e921697a082cf767e0955560c274b|5678|application/oct-stream
- aliyunpan://16-1.hdev|3c56be9a414ee250a4a577494e477e9c0ff8f835|1825|application/oct-stream
- aliyunpan://15-1.hdev|~0,-1~z1|application/oct-stream
- aliyunpan://16-1.hdev|3c56be9a414ee250a4a577494e477e9c0ff8f835|1825|application/oct-stream
- aliyunpan://16-3.hdev|5ed86232ca524cd23285c881b8a8e17ac39c749e|1990|application/oct-stream
- aliyunpan://1.txt|~0,-1~z1|application/oct-stream
- aliyunpan://2.txt|~0,-1~z1|application/oct-stream
- aliyunpan://3.txt|~0,-1~z1|application/oct-stream
复制代码
|