I am using WinSCP Version 4.1.8. I am trying to connect to an SFTP-2 server and have the host key automatically used. I would imagine that this would work quite easy if we were using a script file, but I am limited to just a command line call, not creating a extra file. Below is the command I am trying to run, but it seems to be an issue with the quotes around the open command and the hostkey.
Sorry should have turned on echo to see what was actually happening. I moved the option commands to the beginning of the list of commands and changed the incorrect "option continue on" to the correct "option batch continue".. All seems to be working now. Thanks for you time.