Parallel Transfers + TransferOptions
I'm experimenting with your PowerShell code to allow for Parallel Transfers. As part of my testing, I'm purposely trying to have the script copy files that I've stumbled with in the past.
One of the test involves files with hex code in the filename. IE: A file named:
In my previous code, the fixed was to add the transfer option of
However, using the code at https://winscp.net/eng/docs/library_example_parallel_transfers and under the Synchronization/PowerShell block as my starting point, I can't figure out how/where to add it.
Do you have any tips?
I tried changing the line:
to
But that didn't work. I still get errors such as
One of the test involves files with hex code in the filename. IE: A file named:
Test.%7C
In my previous code, the fixed was to add the transfer option of
AddRawSettings("ReplaceInvalidChars", "0")
Do you have any tips?
I tried changing the line:
$difference.Resolve($syncSession) | Out-Null
$transferOptions = New-Object WinSCP.TransferOptions $transferOptions.ResumeSupport.State = [WinSCP.TransferResumeSupportState]::Off $transferOptions.AddRawSettings("ReplaceInvalidChars", "0") $difference.Resolve($syncSession,$transferOptions) | Out-Null
Thank youError: Exception calling "Resolve" with "1" argument(s): "Cannot create remote file '/server/Problem Files/Test.|'.