Topic "Using command line version with option batch on"

Author Message


Hi there

I'm trying to use WinSCP3 from the command line. I do not want to use the /script parameter unless I have to, because I'm discovering files I need to SCP on the fly, and my code calls WinSCP3 like so: [the server info, which I edited out] /command "put TEST1.EPS"

That works fine. However, I need to use the option batch on and option confirm off switches as well. Can I do that straight from the command line, or do I have to use a script? That would be inconvenient because I'll have to build the script on the fly, too, won't I? I tried it from the command line, like so: [the server info, which I edited out] option batch on option confirm off /command "put TEST1.eps"

but I still get the prompt.


All right, I didn't realize that the "option batch on" is part of the commands! Mr. Green [login info] /command "option batch on" "option confirm off" "put *.EPS" "close"

works just fine.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License