本帖最后由 CrLf 于 2014-8-22 15:54 编辑
回复 3# pan528
move 操作不可逆,请先用少量样本测试:- @echo off
- for /f "tokens=1* delims=|" %%a in ('hash /s /crc32 /printf:"%%s|%%s\n" a\') do set "HASH[%%a]=%%b"
- for /f "tokens=1* delims=|" %%a in ('hash /s /crc32 /printf:"%%s|%%s\n" b\') do (
- set "file=%%b"
- if defined HASH[%%a] (
- setlocal enabledelayedexpansion
- move /y "!HASH[%%a]!" c\ 2>nul
- move /y "!file!" c\
- endlocal
- )
- )
复制代码
|