Differences

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

2016-07-29 2016-10-12
5.9 stable released (martin) explicit value to switch parameter argument for compatibility with PowerShell 2 (martin)
Line 19: Line 19:
# @command      powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -path "!/" -text "%Text%" -wildcard "%Wildcard%" -pause -sessionLogPath "%SessionLogPath%" # @command      powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -path "!/" -text "%Text%" -wildcard "%Wildcard%" -pause -sessionLogPath "%SessionLogPath%"
# @description  Searches recursively for a text in the current remote directory # @description  Searches recursively for a text in the current remote directory
-# @version      2+# @version      3
# @homepage    ~~SELF~~ # @homepage    ~~SELF~~
# @require      WinSCP 5.8.4 # @require      WinSCP 5.8.4
Line 30: Line 30:
    # 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)]
    $path,     $path,
-    [Parameter(Mandatory)]+    [Parameter(Mandatory = $True)]
    $text,     $text,
    $wildcard = "*.*",     $wildcard = "*.*",

Last modified: by martin