Differences
This shows you the differences between the selected revisions of the page.
| 2016-09-05 | 2016-10-12 | ||
| explicitly specifying -config flag (martin) | -STA is needed for Clipboard in PowerShell 2 + explicit value to switch parameter argument for compatibility with PowerShell 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% -sessionLogPath "%SessionLogPath%" | + | # @command powershell.exe -ExecutionPolicy Bypass -STA -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 | # @version 2 | ||
| Line 21: | Line 21: | ||
| # Use Generate URL function to obtain a value for -sessionUrl parameter. | # Use Generate URL function to obtain a value for -sessionUrl parameter. | ||
| $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/", | $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/", | ||
| - | [Parameter(Mandatory)] | + | [Parameter(Mandatory = $True)] |
| $localPath, | $localPath, | ||
| $sessionLogPath = $Null, | $sessionLogPath = $Null, | ||