473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VB. NET - FTP Download File

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
Nov 20 '05 #1
4 8238
* "Scott Johnson" <sjohnson_at_softaltern_dot_comDIESPAM> scripsit:
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>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Cor
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
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.

Nov 20 '05 #3
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
"Cor" <no*@non.com> wrote in message
news:uP*************@tk2msftngp13.phx.gbl...
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
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.


Nov 20 '05 #4
Thanks for your Help! I came up with a solution using a mixture of a couple
of your suggestions.


"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bp*************@ID-208219.news.uni-berlin.de...
* "Scott Johnson" <sjohnson_at_softaltern_dot_comDIESPAM> scripsit:
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>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Brandon Walters | last post by:
I wrote a file download module for my website. The reason for the file download module is that my website downloads work on a credit based system. So I need to keep track of and limit daily...
0
by: Buddy Ackerman | last post by:
I am trying to implment a file download via a link such that when clicked, instead of starting the default application for that type of file the user will be presented with a download dialog...
0
by: Rhys666 | last post by:
Basically I have a link that opens my download page and the querystring identifies the type of 'template' Excel spreadsheet has asked to download. The download page reads the querystring,...
4
by: Nathan Sokalski | last post by:
I want to give visitors to my site the option of downloading a generated ..txt file by clicking a button. I know how to generate text files, but how do I cause the browser to pop up one of those...
1
by: a.r.austin | last post by:
Hello, I am trying to download a few files one after another from a remote server. Problem is that I don't know how to, or if I am able at all, set a time out for download. I don't want to time...
3
by: tshad | last post by:
I have a function that downloads a file to the users computer and it works fine. The problem is that I then want the program to rename the file (file.move) to the same name plus todays date. ...
16
by: matt | last post by:
I have used some free code for listing files for download, but I want to send an email to the administrator when the file has been downloaded. I have got some code in here that does it, but it will...
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.