Differences
This shows you the differences between the selected revisions of the page.
2023-01-04 | 2023-01-11 | ||
fixes the error when renaming the files, containing the square brackets " [ ] " in names in directories with names, containing square brackets. i.e. something like dir/[super] dir/[normal] file.ext (75.80.156.9) | whitespaces (martin) | ||
Line 68: | Line 68: | ||
Write-Host | Write-Host | ||
- | ········ | + | |
if (!$anyChange) | if (!$anyChange) | ||
{ | { | ||
Line 91: | Line 91: | ||
$continue = $True | $continue = $True | ||
} | } | ||
- | |||
if (!$continue) | if (!$continue) | ||
Line 102: | Line 101: | ||
$assemblyPath = if ($env:WINSCP_PATH) { $env:WINSCP_PATH } else { $PSScriptRoot } | $assemblyPath = if ($env:WINSCP_PATH) { $env:WINSCP_PATH } else { $PSScriptRoot } | ||
Add-Type -Path (Join-Path $assemblyPath "WinSCPnet.dll") | Add-Type -Path (Join-Path $assemblyPath "WinSCPnet.dll") | ||
- | ····· | + | |
# Setup session options | # Setup session options | ||
$sessionOptions = New-Object WinSCP.SessionOptions | $sessionOptions = New-Object WinSCP.SessionOptions | ||
$sessionOptions.ParseUrl($sessionUrl) | $sessionOptions.ParseUrl($sessionUrl) | ||
- | ····· | + | |
$session = New-Object WinSCP.Session | $session = New-Object WinSCP.Session | ||
- | · | + | |
try | try | ||
{ | { |