Differences
This shows you the differences between the selected revisions of the page.
| 2019-09-24 | 2020-06-23 | ||
| Since 5.16 we will be using !E instead of !S (martin) | PutFileToDirectory (martin) | ||
| Line 153: | Line 153: | ||
| $session.Open($sessionOptions) | $session.Open($sessionOptions) | ||
| - | $filePath = [WinSCP.RemotePath]::EscapeFileMask($archivePath) | + | $session.PutFileToDirectory($archivePath, $remotePath) |
| - | $session.PutFiles($filePath, $remotePath).Check() | + | |
| Write-Host "Archive $archiveName uploaded." | Write-Host "Archive $archiveName uploaded." | ||