Post a reply

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: Autologin in console mode by a stored session.

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.
Tobia

Autologin in console mode by a stored session.

Hello,
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.
Why?
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.