Je hebt een klacht over de onderstaande posting:
Door Anoniem: https://social.technet.microsoft.com/wiki/contents/articles/52270.windows-powershell-how-to-find-duplicate-files.aspx zo zo... $Path = '\\PDC\Shared\Accounting' #define path to folders to find duplicate files $Files=gci -File -Recurse -path $Path | Select-Object -property FullName,Length $Count=1 $TotalFiles=$Files.Count $MatchedSourceFiles=@() ForEach ($SourceFile in $Files) { Write-Progress -Activity "Processing Files" -status "Processing File $Count / $TotalFiles" -PercentComplete ($Count / $TotalFiles * 100) $MatchingFiles=@() $MatchingFiles=$Files |Where-Object {$_.Length -eq $SourceFile.Length} Foreach ($TargetFile in $MatchingFiles) { if (($SourceFile.FullName -ne $TargetFile.FullName) -and !(($MatchedSourceFiles | Select-Object -ExpandProperty File) -contains $TargetFile.FullName)) { Write-Verbose "Matching $($SourceFile.FullName) and $($TargetFile.FullName)" Write-Verbose "File sizes match." if ((fc.exe /A $SourceFile.FullName ...
Beschrijf je klacht (Optioneel):