Topic "Pass command-line parameters to script"

Author Message
[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%

...using the following example syntax: /script=script.tmp /parameter c:\myfile.txt

...and I get the error:

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

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

Joined: 2009-07-02
Posts: 2
Yes, I was using 4.1.9 - I'll try the new beta.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License