Topic "fail to connect sftp folder by using batch file (2)"

Author Message


this is my batch file script
F:/gem/Inbound/GEM/Templates/winscp/ /console/ |script=F:\gem\Inbound\GEM\Templates\winscp.txt /log=session.log
if errorlevel 1 gotoecho
echo Upload failed, keeping local files

in my log i am seeing this messges:

If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.

how can i select the any one of the option

please help me very urgent
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Please read documentation:
Martin Prikryl

You can post new topics in this forum


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