I'm getting the error message host does not exist when attempting to log on to winSCP using a script and was wondering if anyone had any ideas why this might be happening. This is the beginning of my script:
option batch abort
option confirm off
the username, password and host all work when logging in manually through the console or when logging in through the GUI.
I have solved the problem. If you have had a similar problem then I suggest you check your log file and check that the host name is correct (i.e. as written in the script) rather than it being 'script=c' as it was in my case due to a error in the cmd file that launched this script. Now that error is solved it works fine