Differences
This shows you the differences between the selected revisions of the page.
2016-04-29 | 2016-05-25 | ||
error: prefix (martin) | logging (martin) | ||
Line 20: | Line 20: | ||
<code powershell - SearchText.ps1> | <code powershell - SearchText.ps1> | ||
# @name &Search for Text... | # @name &Search for Text... | ||
- | # @command powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -path "!/" -text "!?Text:?!" -pause | + | # @command powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -path "!/" -text "!?Text:?!" -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 1 | + | # @version 2 |
+ | # @homepage ~~SELF~~ | ||
+ | # @require WinSCP 5.8.3 | ||
+ | # @option SessionLogPath file "&Session log file:" | ||
param ( | param ( | ||
Line 32: | Line 35: | ||
$text, | $text, | ||
$wildcard = "*.*", | $wildcard = "*.*", | ||
+ | $sessionLogPath = $Null, | ||
[Switch] | [Switch] | ||
$pause = $False | $pause = $False | ||
Line 50: | Line 54: | ||
try | try | ||
{ | { | ||
+ | $session.SessionLogPath = $sessionLogPath | ||
+ | |||
# Connect | # Connect | ||
$session.Open($sessionOptions) | $session.Open($sessionOptions) |