Problem with the Put Statement Using Timestamp

Advertisement

DWVZ2000
Joined:
Posts:
10
Location:
USA

Problem with the Put Statement Using Timestamp

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum