# Upload files
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$transferOptions.OverwriteMode = [WinSCP.OverwriteMode]::Append
$transferResult = $session.PutFiles( 'Test01.txt', "remotefile", $False, $transferOptions)
Should append the source file to the end of the target file, yes? It overwrites it every time. I tried setting TransferMode to Ascii and that made no difference.
Am I doing something stupid? The only "real" change I made to the sample script is adding the OverwriteMode setting.
Once I get this to work, I will actually be incorporating it into a much larger program.
I am using version 5.9.3 (Build 7136). Thanks.