Location: Minneapolis, MN USA
Posted: 2009-11-17 21:38
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.
Location: Prague, Czechia
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.
You can post new topics in this forum
And it's free!