Topic "Host does not exist .."

Author Message
[View user's profile]

Joined: 2012-11-09
Posts: 2
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

Set WshShell = WScript.CreateObject("WScript.Shell")
WinSCPrc = WshShell.Run("C:\WinSCP\ /console /script MFT-Dev.txt ")

the script input is:

option batch abort
option confirm off
open s
cd robot_check_responses
get "C:\Users\BDavis\Desktop\"

(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..
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
Should be /script=MFT-Dev.txt
Martin Prikryl
[View user's profile]

Joined: 2012-11-09
Posts: 2
prikryl wrote:
Should be /script=MFT-Dev.txt

Thanks .. forgot the equals sign ...

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License