WINSCP using VBScript

Advertisement

Socko71
Donor
Joined:
Posts:
19
Location:
Indiana

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!!!

Reply with quote

Advertisement

You can post new topics in this forum