Topic "Automation Script Failing"

Author Message
ansonee
[View user's profile]

Joined: 2009-11-17
Posts: 2
Location: Minneapolis, MN USA
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License