Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Re: When using PutFile can you specify send the files in the order they where created?

WinSCP cannot do it for your automatically, but it's easy to implement it in PowerShell:
$fileList = Get-ChildItem "y:\ackn" | Sort-Object LastWriteTime
foreach ($localFile in $fileList)
{
    Write-Host "Uploading $($localFile.FullName)..."
    $session.PutFileToDirectory($localFile.FullName, "./folder")
}

(untested)
graham_jones@...

When using PutFile can you specify send the files in the order they where created?

I am transferring files to a remote folder using
$transferresult = $session.putfiles("y:\ackn\Soc.xml", "./folder", $false, $transferoptions)

Is there a way of ensuring the files are transferred in the order that they were created on the y:\ackn folder?