FTPS and scripting

Advertisement

Guest

FTPS and scripting

Can someone tell me if I can and how do I do to open a connection to a FTPS server from a script with winscp.com.
I noticed the open command only handles the sftp, ftp and scp protocols.

Reply with quote

Advertisement

Guest

Never mind, I found it (https://winscp.net/eng/docs/faq_script_ini) :-D.
Here's what I did - in case someone needs it:
I created a file (whatever.ini) with the following content:
[Sessions\X]
HostName=host.domain.root
PortNumber=1234
UserName=the user name
Password=the password
FSProtocol=5
Ftps=2
I created another file (whatever.ftp) with the following content
open X
...
exit
Than launched the command line tool like this:
winscp.com /script=whatever.ftp /ini=whatever.ini

Reply with quote

Advertisement

You can post new topics in this forum