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

acar

put command in script ignores -preservetime

I wrote a small script which uploads files to a server. It use my existing sesion which preserves time stamps.

This command is like this:

put aaa.cpp [....] ./


and it works fine. However, if I change it to

put -preservetime aaa.cpp [....] ./


it DOESN'T preserve time stamps, instead of that it writes present time!
The same behavior is with -nopreservetime (which is expected).

I made Windows shortcut with target line:
"C:\.....\WinSCP\winscp416.exe" /console /script=winscp_upload_script XXX@YYY.ZZZ

Winscp version: 4.16