VB. NET - FTP Download File

  • Thread starter Thread starter Scott Johnson
  • Start date Start date
S

Scott Johnson

Hi!

I am trying to get Visual Basic .NET to download a file from an ftp site. I
don't need a user interface, i just need to download a file that I will
already know the path/filename. I remember how simple this was to do in VB6
(like 3 lines using an API), so I figured that it should be simple enough in
VB.NET. I have found a few 3rd party controls, but I would like to stick
with as much raw code as possible.

Can anyone point me in the right direction? (or even a code sample?)

Thanks!
--Scott
 
* "Scott Johnson said:
I am trying to get Visual Basic .NET to download a file from an ftp site. I
don't need a user interface, i just need to download a file that I will
already know the path/filename. I remember how simple this was to do in VB6
(like 3 lines using an API), so I figured that it should be simple enough in
VB.NET. I have found a few 3rd party controls, but I would like to stick
with as much raw code as possible.

VB.NET:

<http://www.freevbcode.com/ShowCode.Asp?ID=4655>
<http://www.allapi.net/downloads/NetFTP.zip>
<http://www.visualbuilder.com/article/viewarticle.asp?id=1234>
<http://www.abderaware.com/ (company site)>

C#:

<http://www.csharphelp.com/archives/archive9.html>
<http://www.codeproject.com/csharp/FTPDriver1.asp>
 
Hi Scott,

Are you sure it has to be a FTP site, because when it is a HTTP site it is a
piece of cake with the webclient download.

Cor
 
Cor -- I wish I could use the webclient (2 lines of code would be great) but
I am using the Compact Framework and that looks to be one of the options
that was removed to scale it down to fit on a handheld pda.

--Scott
 
Thanks for your Help! I came up with a solution using a mixture of a couple
of your suggestions.
 
Back
Top