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.

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)


Topic review


Re: script put -latest upload only the last single file modified

Because, that's what the "latest" means, doesn't it?
WinSCP cannot do what you wanted it to do. WinSCP does not keep any database of your files to be able to tell that you have two new files.
You would have to code such "database" yourself.
We have an example for download, upload would be pretty similar:
Remember already downloaded files so they are not downloaded again
For other less complicated options, see:
How do I transfer new/modified files only?
Though if you have just two files in the folder, and you want to upload all, just upload all of them.

Script put -latest upload only the last single file modified

I don't understand how the -latest option works.
I have 2 files in the local folder and I want to upload them, both files have just been modified in the local folder, but only the last single file modified in the local folder is uploaded, why?