Topic "WINSCP using VBScript"

Author Message
Socko71
[View user's profile]
Donor
Joined: 2013-03-22
Posts: 19
Location: Indiana
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!!!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Socko71 wrote:
.Protocol = Protocol_Sftp <---- This one

See https://winscp.net/eng/docs/library_com_wsh#enums

Quote:
.SshHostKeyFingerprint <--- We don't use a key

This is a host key, not a client key. There's always a host key to verify.
See https://winscp.net/eng/docs/faq_hostkey
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