PowerShell Recursive Copy Skip Si le fichier existe déjà
robocopy /xc /xn /xo source destination
Super Starling
robocopy /xc /xn /xo source destination
$Source = "C:\SourceFolder"
$Destination = "C:\DestinationFolder"
Get-ChildItem $Source -Recurse | ForEach {
$ModifiedDestination = $($_.FullName).Replace("$Source","$Destination")
If ((Test-Path $ModifiedDestination) -eq $False) {
Copy-Item $_.FullName $ModifiedDestination
}
}