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 4 8254
* "Scott Johnson" <sjohnson_at_so ftaltern_dot_co mDIESPAM> 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.visualbuild er.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>
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.
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******** *****@tk2msftng p13.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.
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_so ftaltern_dot_co mDIESPAM> 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.visualbuild er.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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 downloads.
It uses fpassthru() and some headers() to send a file to the requesting
user. The get.php file that I wrote (the file download module if you will)
works like a charm for .ZIP files and .TXT files. However, when .EXE files
are downloaded...
|
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 window. Well, thanks to Steve Orr,
I have that working. However, I still have a few issues. First, the
download dialog does not have the name of the file being downloaded in the
"File name" field, instead it has the name of the aspx page that have...
|
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, identifies the template required
then uses Response.AppendHeader to amend the response to create the file
download dialogue. On my local machine this works fine and the download
dialogue correctly identifies the file name and type attempting to be...
|
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 dialog boxes that says
something like "Do you want to download FILEX.txt?" I want the user to be
able to download the file rather than have the file displayed in the
browser, because the file will include some characters such as tabs and
commas....
|
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 out whole script,
just a part if file won't download in 2mins then skip to the next one.
Previously, I had a Javascript implementation with AJAX, this time I
thought of doing it in PHP since PHP has far better array functions, I
don't have to do...
| |
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.
The problem is that when you run the program it gets to the:
Response.AddHeader("Content-Disposition", "attachment; filename=" +
file.Name)
|
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 not print in the
username or email amddress of the person doing the download - which I am
collecting from a form on the previous page. I can get the name and
email address to print out normally, just not into the email sending
body. I have...
|
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
|
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
|
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script.
What You Need
Any recent...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |