Import-Module BitsTransfer
$source = "C:\IE"
$dest = "\\10.10.10.24\IE"
xcopy.exe /T /E $source $dest /Y
Get-ChildItem -Path $source -Recurse | ?{$_.PSisContainer} | foreach {$spath = $_.FullName.Remove(0,$source.Length+1); Start-BitsTransfer -Source $source\$spath\*.* $dest\$spath}
Start-BitsTransfer $source\*.* $dest
Brak komentarzy:
Prześlij komentarz