No to je teda rada.. proč by to musel manuálně mazat?
Dá se to zmáknout třeba přes powershell ..
function get-hash
{
$md5 = new-object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
return $hash = [System.BitConverter]::ToString($md5.ComputeHash([System.IO.File]::ReadAllBytes($_.fullname)))
}
$lists=get-childitem d:\Temp\ -Recurse |?{!$_.Psiscontainer}| select fullname,@{n="Hash";e={$_ |get-hash}} |group hash | ?{$_.count -gt 1}
foreach ($list in $lists){
$judge=$true
$list|select -ExpandProperty group|?{$_.fullname -like "*d:\Temp\*"}|foreach{
if($judge -ne ""){$judge=$false}
else{
Remove-Item $_.fullname -whatif}
}
}
... najde duplicitní soubory v D:\TEMP\ .. a napíše co je duplicitního. Stačí zaměnit -whatif za -verbose (nebo prostě whatif odstranit) a rovnou maže duplicity.. Takže nic manuálně dělat nemusí ..