Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Top-stop

WinSCP .NET assembly Session.PutFiles() syntax

First I want to thank you for WinSCP .NET assembly: as it eases uploading to remote FTP servers.

I have a syntax question re how to script the input of 2 source folders to 2 destination folders respectively as below. Should script include 2 session.PutFiles() like below?
$sourceA = "\\sourceA\" 
$sourceB = "\\sourceB\"
$destinationA = "/destinationA/"
$destinationB = "/destinationB/"
$session.PutFiles($sourceA, $destinationA)
$session.PutFiles($sourceB, $destinationB)