Topic "Batch Problem"

Author Message
Maher

Guest


Is there any way of setting "option batch on" & "option confirm off" other than using /script, such as thought the .ini file?

I am running the application as a script but I do not wish to save the password in the script file so I call the following command:

winscp.exe user:pass@www.server.com /console /script=file.txt

It works fine but if I get the key exchange screen i.e. "The servers host key is not found...." the application will stall there waiting for user input, i.e. the script file does not execute the batch on & confirm off commands until a session has fully started.

Any ideas?
Thanks
M
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You can open the session using "open" command instead of from command line after you issue the "option batch off". But this won't help you anyway as the host key confirmation cannot be supressed for security reasons. You need to confirm the key manually first before using the script files. This problem is already discussed in topic Scripting and Authenticating.
_________________
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