Posted: 2009-04-02 10:13
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.
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.
You can post new topics in this forum
And it's free!