Topic "Network Unreachable error Message using scripting"

Author Message
Sgaines13
[View user's profile]

Joined: 2013-04-02
Posts: 1
Batch file command:
winscp.com /command "option batch abort" "option confirm off" ""open sftp://login:password@address -hostkey=""*******************" "" "put ""location\Test.csv""" "exit"

Get error message: Network unreachable - when run batch file

Can login to WinSCP client and connect SFTP without a hostkey and transfer manually, but want to automate.
Verified Hostkey to use in batch file.
Please advise. Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please compare session logs from GUI and scripting to find what makes the difference. If you cannot resolve this on our own, please attach both (complete) logs.
_________________
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