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

DWVZ2000

Problem with the PUT command

I am having a problem putting a file to an SFTP site using the PUT command.
I am new with Winscp, but I have used the Put command successfully in other scripts. I am using Winscp Version 5.7.4 and Windows 7. Below are the two scripts that I have tried. I get folder/file not found or some other messages.

1st One:
="C:\Program Files\WinSCP\WinSCP.exe /console /command ""option confirm off"" ""open MySession"" ""put \\abc-dr\DailyFiles\Inpatients Daily Report-"%%TimeStamp#yyyy-mm-dd%%".csv"" "

2nd One:
="C:\Program Files\WinSCP\WinSCP.exe /console /command ""option confirm off"" ""open MySession"" ""put \\abc-dr\DailyFiles\Inpatients Daily Report-" & Format(Now(),'yyyy-mm-dd') & ".csv"" "

Thanks for any help you can give.

David