Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Batch script 'host not found'

Follow here.
Joe_1234

Oh, I think I posted this in the wrong forum. Apologies. I'll post it again there.
Joe_1234

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.