Topic "Autologin in console mode by a stored session."

Author Message
[View user's profile]

Joined: 2009-04-02
Posts: 1
i'm new of winscp. I use the GUI to save all my connections to server. Now i want to make a batch file to automatize the backup, so i tried to use the /console mode.
I run my saved sessions by "winscp421.exe mysession /console" but i get a "Server sent a command exit status 0". However if i remove the /console flag: "winscp421.exe mysession" the session starts automatically with a correct authentication.
Can be something connected with private/host key? But why the stored session works with the GUI but not with console?
I also tried to set hostkey/private key in the command line, but i don't know how to get this files.

thank you.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
First, do not do it like that do:
/console /command "option batch on" "option confirm off" "open mysession"

Second, post a log file both for GUI session and console session.
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