Differences
This shows you the differences between the selected revisions of the page.
2017-12-21 | 2018-02-20 | ||
generate url commands have been renamed while ago (martin) | 5.13 session path methods to remotepath class (martin) | ||
Line 20: | Line 20: | ||
# @description Packs the selected files to a ZIP archive and uploads it | # @description Packs the selected files to a ZIP archive and uploads it | ||
# @flag ApplyToDirectories | # @flag ApplyToDirectories | ||
- | # @version 5 | + | # @version 6 |
# @homepage ~~SELF~~ | # @homepage ~~SELF~~ | ||
- | # @require WinSCP 5.8.4 | + | # @require WinSCP 5.13 |
# @require .NET 4.5 | # @require .NET 4.5 | ||
# @option ArchiveName -run textbox "&Archive name:" "archive" | # @option ArchiveName -run textbox "&Archive name:" "archive" | ||
Line 146: | Line 146: | ||
$session.Open($sessionOptions) | $session.Open($sessionOptions) | ||
- | $session.PutFiles($session.EscapeFileMask($archivePath), $remotePath).Check() | + | $session.PutFiles([WinSCP.RemotePath]::EscapeFileMask($archivePath), $remotePath).Check() |
Write-Host "Archive $archiveName uploaded." | Write-Host "Archive $archiveName uploaded." |