Topic ""Host does not exist" from script"

Author Message
pjdevries
[View user's profile]

Joined: 2007-06-12
Posts: 2
I've read various other related topics, but none of them seem to address my specific problem.

I'm using WinSCP 4.0.2 (build 344) and created a script try.wscp as follows:
Code:
option batch on
option confirm off
open "sync host1"
option transfer binary
option synchdelete on
synchronize local J:\obix1\try /backup/try
close
exit

I execute the script with the command:
Code:
c:\progra~1\winscp\winscp /ini=c:\progra~1\winscp\winscp.ini /script try.wscp

This results in the error "Host does not exist" and leaves me in interactive mode. When I then run the command open "sync host1" manually, the connection is established without a problem.

Any ideas?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Use /script=try.wscp
_________________
Martin Prikryl
pjdevries
[View user's profile]

Joined: 2007-06-12
Posts: 2
Thanks for your reply. And yes, that did the trick and I do feel quite embarrassed and awfully stupid Embarassed Ik guess I wasn't quite awake when I tried to solve this little problem. The least I can do is send a donation, which, by the way, has nothing to do with my stupidness but with the fact that WinSCP is a very cool and valuable asset to the universe of Open Source software.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Thanks Smile
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License