Topic "Can we use WinSCP with VB6 application."

Author Message
sumangeorge
[View user's profile]

Joined: 2016-12-15
Posts: 15
Location: Detroit
Hi,

I need to convert FTP code to SFTP in VB6 application.
I am using visual basic IDE.
Please let me know:
1.> If WinSCP can be used in vb6 application. &
2.> If yes, is there any help or documentation on how to use WinSCP in VB6. All i can find is for VB.net and C#.
Advertisements
solutionsville
[View user's profile]

Joined: 2016-10-20
Posts: 18
Location: Ft Worth
Short answer, No. Not according to the documentation for the .NET & COM Library; However it does look like you can do it with VBScript and VBA .

https://winscp.net/eng/docs/library

WinSCP .NET Assembly and COM Library


The WinSCP .NET assembly winscpnet.dll is a .NET wrapper around WinSCP’s scripting interface that allows your code to connect to a remote machine and manipulate remote files over SFTP, FTP, WebDAV and SCP sessions from .NET languages, such as C#, VB.NET, and others, or from environments supporting .NET, such as PowerShell, SQL Server Integration Services (SSIS), ASP.NET and Microsoft Azure WebSite.

The assembly is also exposed to COM, and as such it can be used from variety of other programming languages and development environments–e.g., WSH-hosted active scripting languages like JScript and VBScript, Visual Basic for Applications (VBA), Perl, and Python.
sumangeorge
[View user's profile]

Joined: 2016-12-15
Posts: 15
Location: Detroit
Ok so i cannot use winSCP in Visual basic application.
Neutral

I am new to VB so can you please give me a hint as in how will i use vb script in vb6.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26138
Location: Prague, Czechia
You can use WinSCP .NET assembly in VB6. I know that people succeeded with that.
For example, see
https://stackoverflow.com/q/26342675/850848
https://winscp.net/forum/viewtopic.php?t=24173
I have no experience with VB6 though, so I cannot give you details.
You just have to register the assembly as a COM somehow.
It will be similar as in VBA:
https://winscp.net/eng/docs/library_vb#using
solutionsville
[View user's profile]

Joined: 2016-10-20
Posts: 18
Location: Ft Worth
I stand corrected, and I apologize for misleading sumangeorge.

martin wrote:
You can use WinSCP .NET assembly in VB6. I know that people succeeded with that.
For example, see
https://stackoverflow.com/q/26342675/850848
https://winscp.net/forum/viewtopic.php?t=24173
I have no experience with VB6 though, so I cannot give you details.
You just have to register the assembly as a COM somehow.
It will be similar as in VBA:
https://winscp.net/eng/docs/library_vb#using
sumangeorge
[View user's profile]

Joined: 2016-12-15
Posts: 15
Location: Detroit
Thank you so much guys..It really helps!!!
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