Topic "console and script support"

Author Message
gibic

Guest


how can i run winscp in command line mode? And can i run ftp script? how?
Advertisements
gibic

Guest


vdaka
Gill

Guest


You can run winscp3.com /script=ftp.scr in command line mode.

First you must creat ftp script named ftp.scr
Example:
option confirm off
option batch on
option transfer binary
open sftp://userid:password@host
get * DownloadFiles\
close
exit

gibic wrote:
how can i run winscp in command line mode? And can i run ftp script? how?
brianp

Guest


I've written a script file that functions flawlessly when I run it from the command line, however when I attempt to launch it from a ColdFusion template, I get an error in the log file saying: "The server's host key is not cached in the registry."

I understand that the key is stored by user, so I assume there's two ways I can solve this. 1) copy the key (don't know where from / to) in the registry or 2) modify the script, a least once, to respond to the prompt "add this host key to the registry" (also, not something I know how to do in the script file) - then I assume I would be fine.

Any advice would be greatly appreciated.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24554
Location: Prague, Czechia
brianp wrote:
I understand that the key is stored by user, so I assume there's two ways I can solve this. 1) copy the key (don't know where from / to) in the registry or 2) modify the script, a least once, to respond to the prompt "add this host key to the registry" (also, not something I know how to do in the script file) - then I assume I would be fine.

Please read F.A.Q.
_________________
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