Can we use WinSCP with VB6 application.

Advertisement

sumangeorge
Joined:
Posts:
15
Location:
Detroit

Can we use WinSCP with VB6 application.

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#.

Reply with quote

Advertisement

solutionsville
Joined:
Posts:
25
Location:
Ft Worth

Re: Can we use WinSCP with VB6 application.

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.

Reply with quote

sumangeorge
Joined:
Posts:
15
Location:
Detroit

Re: Can we use WinSCP with VB6 application.

Ok so i cannot use winSCP in Visual basic application.
:|

I am new to VB so can you please give me a hint as in how will i use vb script in vb6.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,760
Location:
Prague, Czechia

Re: Can we use WinSCP with VB6 application.

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

Reply with quote

solutionsville
Joined:
Posts:
25
Location:
Ft Worth

Re: Can we use WinSCP with VB6 application.

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum