Differences
This shows you the differences between the selected revisions of the page.
2016-05-30 | 2016-05-30 | ||
homepage + requires 5.8.3 (martin) | options + version 2 (martin) | ||
Line 9: | Line 9: | ||
<code powershell - DownloadClipboard.ps1> | <code powershell - DownloadClipboard.ps1> | ||
# @name &Download from Path in &Clipboard | # @name &Download from Path in &Clipboard | ||
- | # @command powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -localPath "!\" %Pause% | + | # @command powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -localPath "!\" %Pause% -sessionLogPath "%SessionLogPath%" |
# @description Downloads remote file from a path stored in clipboard to the current local directory | # @description Downloads remote file from a path stored in clipboard to the current local directory | ||
+ | # @version 2 | ||
# @homepage ~~SELF~~ | # @homepage ~~SELF~~ | ||
# @require WinSCP 5.8.3 | # @require WinSCP 5.8.3 | ||
# @option Pause checkbox "&Pause at the end" -pause -pause | # @option Pause checkbox "&Pause at the end" -pause -pause | ||
- | # @version ·····1 | + | # @option ······SessionLogPath file "&Session log file:" |
+ | # @optionspage ~~SELF~~#options | ||
param ( | param ( | ||
Line 78: | Line 80: | ||
exit $result | exit $result | ||
</code> | </code> | ||
+ | |||
+ | ===== Options ===== | ||
+ | The //Pause at the end// makes the script wait for a key press when it finishes. | ||
+ | |||
+ | In the //Session log file// you can specify a path to a [[logging|session log file]]. | ||