Topic "Batch script 'host not found'"

Author Message


I'm having a problem - I'm trying to connect to my server in a batch script, using the line:
call "C:\Program Files (x86)\WinSCP\" open s

but I keep getting 'Host not found' returned in the console. However, once the terminal goes to winscp> I am able to copy and paste directly
open s

and it connects successfully. Why is this only failing when calling from a batch script? Or am I doing something wrong?

Any help is appreciated. I posted this initially in the wrong forum, sorry for that!


I manage to solve this, I was being stupid - I needed to use the /script command with a list of options in an external text file. I'm not sure why I was trying what I did, but in any case, this works!

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