Differences
This shows you the differences between the selected revisions of the page.
| 2019-05-27 | 2019-07-25 | ||
| 5.12 Bug 1589 – Use SHA-256 host key fingerprints (martin) | 5.14.2 Change: Renamed RemotePath.CombinePaths to RemotePath.Combine (martin) | ||
| Line 22: | Line 22: | ||
| # @description Renames remote files using a regular expression | # @description Renames remote files using a regular expression | ||
| # @flag RemoteFiles | # @flag RemoteFiles | ||
| - | # @version 4 | + | # @version 5 |
| # @homepage ~~SELF~~ | # @homepage ~~SELF~~ | ||
| - | # @require WinSCP 5.13 | + | # @require WinSCP 5.14.2 |
| # @option - -run group "Rename" | # @option - -run group "Rename" | ||
| # @option Pattern -run textbox "Replace file name part matching this pattern:" | # @option Pattern -run textbox "Replace file name part matching this pattern:" | ||
| Line 121: | Line 121: | ||
| Write-Host "$file => $newName" | Write-Host "$file => $newName" | ||
| - | $fullName = [WinSCP.RemotePath]::CombinePaths($remotePath, $file) | + | $fullName = [WinSCP.RemotePath]::Combine($remotePath, $file) |
| - | $fullNewName = [WinSCP.RemotePath]::CombinePaths($remotePath, $newName) | + | $fullNewName = [WinSCP.RemotePath]::Combine($remotePath, $newName) |
| $session.MoveFile($fullName, $fullNewName) | $session.MoveFile($fullName, $fullNewName) | ||
| } | } | ||