martin Re: Pass command-line parameters to script 2009-07-03 The /parameter switch was introduced in 4.2.2 beta. I suspect you are using earlier version.
llindholm Pass command-line parameters to script 2009-07-02 18:38 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?