Should be /script=MFT-Dev.txt
Hello .. I am trying to connect to a host by calling WinSCP from a vbscript, and always get the error 'Host does not exist'. I try the same open command from the console, and it works fine. Have tried using both /script and /command options, and get the same result. The vbscript code that calls WinSCP is below (have tried with both WinSCP.exe and WinSCP.com)
Set WshShell = WScript.CreateObject("WScript.Shell")
WinSCPrc = WshShell.Run("C:\WinSCP\WinSCP.com /console /script MFT-Dev.txt ")
the script input is:
option batch abort
option confirm off
open sftp://xxxxxx:xxxxxx.ft@Internal-xfer.dv.tvlport.com
cd robot_check_responses
get robot_FTP_response_123.zip "C:\Users\BDavis\Desktop\"
close
(user id and password removed))
Have tried versions 511 and 439 ... running on Win 7 pro ...
Any idea why it will not work from a script?
Thank you..