Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

llindholm

Yes, I was using 4.1.9 - I'll try the new beta.
martin

Re: Pass command-line parameters to script

The /parameter switch was introduced in 4.2.2 beta. I suspect you are using earlier version.
llindholm

Pass command-line parameters to script

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?