Differences
This shows you the differences between the selected revisions of the page.
| 2016-09-05 | 2016-10-12 | ||
| explicitly specifying -config flag (martin) | explicit value to switch parameter argument for compatibility with PowerShell 2 (martin) | ||
| Line 18: | Line 18: | ||
| # @description Compares checksums of the selected local and remote file | # @description Compares checksums of the selected local and remote file | ||
| # @flag RemoteFiles | # @flag RemoteFiles | ||
| - | # @version 2 | + | # @version 3 |
| # @homepage ~~SELF~~ | # @homepage ~~SELF~~ | ||
| # @require WinSCP 5.8.4 | # @require WinSCP 5.8.4 | ||
| Line 27: | Line 27: | ||
| # 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, | ||
| - | [Parameter(Mandatory)] | + | [Parameter(Mandatory = $True)] |
| $remotePath, | $remotePath, | ||
| $sessionLogPath = $Null, | $sessionLogPath = $Null, | ||