Topic "Add Raw Setting is VBA"

Author Message
Franklin321
[View user's profile]

Joined: 2015-08-11
Posts: 3
Location: Cape Town
Hi,

Any help would be of great assistance.

How to i add proxyHost, ProxyPort, ProxyUsername, ProxyPassword to SessionOptions in VBA

Regards,
Franklin
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I cannot try right now, but this should do:

Code:
Dim mySessionOptions As New SessionOptions
With mySessionOptions
    .Protocol = Protocol_Sftp
    .HostName = "example.com"
    .UserName = "user"
    ...

    .AddRawSettings "ProxyHost", "proxy"
    .AddRawSettings "ProxyPort", "90"
    ...
End With
Franklin321
[View user's profile]

Joined: 2015-08-11
Posts: 3
Location: Cape Town
Thanks for the feedback.

I tried your suggested implementation but it produces a syntax error.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
OK, the brackets should not be there. See corrected example above.
Franklin321
[View user's profile]

Joined: 2015-08-11
Posts: 3
Location: Cape Town
prikryl wrote:
OK, the brackets should not be there. See corrected example above.


Thanks alot Prikryl. It worked after adding a couple of other rawsettings for the connection.
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