Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

bob.davis@travelport.com

Re: Host does not exist ..

martin wrote:

Should be /script=MFT-Dev.txt


Thanks .. forgot the equals sign ...
martin

Re: Host does not exist ..

Should be /script=MFT-Dev.txt
bob.davis@travelport.com

Host does not exist ..

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