Automation Script Failing

Advertisement

ansonee
Joined:
Posts:
5
Location:
Minneapolis, MN USA

Automation Script Failing

I have a very basic script I wrote to SFTP a file to a client. For some reason it refuses to work:

winscp419 /command "option batch on" "option confirm off" "open H1N1 - MD" "put E:\jobs\Maryland\*.csv /*.*" "exit"

Am I missing something? I have double checked the directory names on the source and they are correct and the file does exist. Even when running directly from the command line, the script fails.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Automation Script Failing

It is probably the space in the stored session name. You need to enclose it in quotes. You cannot do this with 4.1.9 from command-line, you need to use beta. Or rename the stored session to avoid the spaces.

Reply with quote

Advertisement

You can post new topics in this forum