Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB9.0 VB.NET
Hi,
 
How can i use winscp to transfer file in the sftp server using vb2005?
 
can please provide a sample code.
 

 
Thank you very much in advance.
Posted 9-Jul-12 15:40pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

In the documentation, I cannot see any API. This is the application, not a library. That means, using it as a library cannot be productive. (Do you really understand the difference?)
 
Please see by yourself:
http://en.wikipedia.org/wiki/WinSCP[^],
http://winscp.net/eng/docs/start[^].
 
However, as this is an open-source product, you can extract the code you need and try to use it in your code. But remember, this is C++, so you might need to 1) translate the code into .NET and VB.NET; 2) create a .NET wrapper of it using P/Invoke, or 3) create a .NET wrapper of it using C++/CLI. Are you familiar with any of these technologies or are you willing to learn them? If you are a novice, it won't be very easy task.
 
You could be more successful if you try to find some pure .NET library for SFTP, which is quite possible:
http://bit.ly/NcJ4y0[^].
 
—SA
  Permalink  
Comments
Alan Tuscano at 9-Jul-12 21:40pm
   
Hi Sergey, Thanks for the quick reply.
 
searching the web for winscp sftp.. i am always being directed to "PuTTY"? and PuTTY is a 3rd party software(Free).
 
I haven't check the links you provide, but.. can Winscp alone do the work or i will need to download and use 3rd party software like "PuTTY"?
Sergey Alexandrovich Kryukov at 10-Jul-12 23:08pm
   
Bad idea, if you want use it directly. A separate process is a separate process; the processes are isolated. We call it "scratching right ear with a left hand".
--SA
Alan Tuscano at 10-Jul-12 3:56am
   
Hi Sergey,

I can Access SFTP Server/Folder using winscp.. can you please help me and provide sample code on how to upload/download textfile to the sftp server using winscp.

I really have no idea how to do it/...

 
Thanks a lot..
Sergey Alexandrovich Kryukov at 10-Jul-12 23:09pm
   
Sorry, it makes little to no sense, because this is wrong idea, of a dead-end sort.
--SA
Alan Tuscano at 12-Jul-12 22:04pm
   
Hi SA,
 
Finally got Access, Upload and Download files from SFTP.
 
Thanks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 385
1 Sergey Alexandrovich Kryukov 329
2 CPallini 270
3 DamithSL 214
4 Maciej Los 192
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 10 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100