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

Socko71

WINSCP using VBScript

I can access our Filezilla FTP Sever using Winscp.com and a script file after creating a Session with file protocol of FTP and Encryption set to TLS Explicit Encryption. I looked for examples that uses vbscrpt. I'm not even sure if I can use vbscript to connect to a Filezilla FTP server using the above session setup. Can I? If so what would I set these settings to to connect? Can I synchronize?

Dim sessionOptions
Set sessionOptions = WScript.CreateObject("WinSCP.SessionOptions")
With sessionOptions
.Protocol = Protocol_Sftp <---- This one
.HostName = "example.com"
.UserName = "user"
.Password = "mypassword"
.SshHostKeyFingerprint <--- We don't use a key
End With

Thanks!!!