Topic "Pass command-line parameters to script"

Author Message
llindholm
[View user's profile]

Joined: 2009-07-02
Posts: 2
I'm trying to run this example script.tmp:

option batch on
option confirm off
open mysession
put %1%
exit

...using the following example syntax:

winscp.com /script=script.tmp /parameter c:\myfile.txt

...and I get the error:

File or folder '%1%' does not exist.

What am I doing wrong?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
The /parameter switch was introduced in 4.2.2 beta. I suspect you are using earlier version.
_________________
Martin Prikryl
llindholm
[View user's profile]

Joined: 2009-07-02
Posts: 2
Yes, I was using 4.1.9 - I'll try the new beta.
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