a475012621 当前离线
上等兵
评分人数
aloha20200628 当前离线
上尉
certutil -hashfile "1.jpg" md5 | findstr /rbc:"[0-9a-z][0-9a-z] "复制代码
TOP
wanghan519 当前在线
二级士官
cd 测试 $d=@{};dir -File -Recurse | sort -Descending | % {$m=$_.DirectoryName+"\"+(Get-FileHash $_.FullName -Algorithm MD5).Hash;if($d.ContainsKey($m)){rm $_.FullName}else{$d.Add($m,1)}}复制代码
Five66 当前离线
77七 当前离线
中校
@echo off rem http://bbs.bathome.net/redirect.php?goto=findpost&ptid=53343&pid=221896 for /r /d %%d in (*) do ( pushd "%%d" setlocal for %%a in (*.jpg) do ( for /f %%i in ('certutil -hashfile "%%a" MD5 ^| findstr /v "[^0-9a-z]"') do ( if defined _"%%i" ( del "%%a" ) else ( set _"%%i"=1 ) ) ) endlocal popd ) pause复制代码
buyiyang 当前离线
中尉
http://bcn.bathome.net/tool/fourmilab,2.0/md5.exe复制代码
@echo off for /r /d %%d in (*) do ( pushd "%%d" setlocal for /f "tokens=1*" %%a in ('"%~dp0md5.exe" *.jpg') do ( if defined _"%%a" ( del "%%b" ) else ( set _"%%a"=1 ) ) endlocal popd ) pause复制代码