Batch script 'host not found'

Advertisement

Joe_1234
Guest

Batch script 'host not found'

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\WinSCP.com" open sftp://username:password@myserver.com

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 sftp://username:password@myserver.com
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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum