1 2 3 4 5 6 7 8 9 10 11 |
ForEach ($file in gci F:\power\videos){ $file $webclient = New-Object System.Net.WebClient $uri = New-Object System.Uri($ftp) $webclient.UploadFile($uri, $file) Move-Item $file.Fullname F:\power\copia $file.FullName | Out-File F:\power\copiados.txt -Append } |