Re: 4.1.9 documents /parameter use then why?
I've tried this on 4.1.8 and 4.2.4beta.
It works since 4.2.2 only. So it should work with 4.2.4. Please post your complete script and output of the console running it.
I've tried this on 4.1.8 and 4.2.4beta.
%1%
into the ls
statement: (Pardon the paraphrasing on results; I don't have the window in front of me at the moment.)
winscp.exe /console /script=test.txt /parameter Temp
'%1%': No such file or directory.
a) it would not let me pass parameters to script. The documentation contains not one single working example.
b) It wont accept hostkey automatically. I know there are security issues, but I have to log onto 400 machines in a loop and pick out select files from them.