Differences

This shows you the differences between the selected revisions of the page.

library_example_download_clipboard 2019-05-27 library_example_download_clipboard 2022-06-16 (current)
Line 10: Line 10:
# @name        &Download from Path in &Clipboard # @name        &Download from Path in &Clipboard
# @command      powershell.exe -ExecutionPolicy Bypass -STA -File "%EXTENSION_PATH%" ^ # @command      powershell.exe -ExecutionPolicy Bypass -STA -File "%EXTENSION_PATH%" ^
-#                  -sessionUrl "!S" -localPath "!\" %Pause% -sessionLogPath "%SessionLogPath%"+#                  -sessionUrl "!E" -localPath "!\" %Pause% -sessionLogPath "%SessionLogPath%"
# @description  Downloads remote file from a path stored in clipboard ^ # @description  Downloads remote file from a path stored in clipboard ^
#                  to the current local directory #                  to the current local directory
-# @version      5+# @version      6
# @homepage    ~~SELF~~ # @homepage    ~~SELF~~
-# @require      WinSCP 5.12+# @require      WinSCP 5.16
# @option      Pause -config pausecheckbox # @option      Pause -config pausecheckbox
# @option      SessionLogPath -config sessionlogfile # @option      SessionLogPath -config sessionlogfile
Line 22: Line 22:
param ( param (
    # Use Generate Session URL function to obtain a value for -sessionUrl parameter.     # Use Generate Session URL function to obtain a value for -sessionUrl parameter.
-    $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xxxxxxxxxxx...=@example.com/",+    $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xxxxxxxxxxx...@example.com/",
    [Parameter(Mandatory = $True)]     [Parameter(Mandatory = $True)]
    $localPath,     $localPath,

Last modified: by martin