Differences
This shows you the differences between the selected revisions of the page.
2017-12-21 | 2018-02-20 | ||
generate url commands have been renamed while ago (martin) | 5.13 session path methods to remotepath class (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 4 | + | # @version 5 |
# @homepage ~~SELF~~ | # @homepage ~~SELF~~ | ||
- | # @require WinSCP 5.8.4 | + | # @require WinSCP 5.13 |
# @option Text -run textbox "Text:" | # @option Text -run textbox "Text:" | ||
# @option Wildcard -run textbox "File mask:" "*.*" | # @option Wildcard -run textbox "File mask:" "*.*" | ||
Line 75: | Line 75: | ||
# Download file to temporary directory | # Download file to temporary directory | ||
$transferResult = | $transferResult = | ||
- | $session.GetFiles($session.EscapeFileMask($fileInfo.FullName), $tempPath) | + | $session.GetFiles([WinSCP.RemotePath]::EscapeFileMask($fileInfo.FullName), $tempPath) |
# Did the download succeeded? | # Did the download succeeded? | ||
if (!$transferResult.IsSuccess) | if (!$transferResult.IsSuccess) |