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?
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?