473,566 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

download multiple files using wildcards with WebClient.Downl oadFile()

Individual file download works fine. But when I try to download multiple
files, for example using wildcards in the following code, I get error. How
to solve it?

System.Net.WebC lient Client = new System.Net.WebC lient();
Client.Download File("ftp://123.123.456.0/*.RPT",
@"C:\downloaded Files\*.RPT");

Are there other possibilities??

web_learner
Apr 18 '06 #1
0 1998

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

Similar topics

3
7362
by: Du Dang | last post by:
i wanna create a bot to download wallpaper from a website cuz there are thousands of pic availiable and right click and "save as" ain't fun no more so far i got this from google +++++++++++ WebClient Client = new WebClient(); Client.DownloadFile(url, save_as);
2
2986
by: r dubey | last post by:
Hi, I'm using webclient to enable download of files. However, files get copied to the server rather than the client machine. What could be the problem. Here is the sample that I've used: WebClient myWebClient = new WebClient(); myWebClient.DownloadFile ("http://www.myweb.com/testfile.txt" ,"c:/test.txt");
16
7355
by: Bob Moore | last post by:
We have a requirement to put a client onto machines intended for some telephony work. The database access will be via ASP.Net pages, and that's fine, but the telephony stuff requires access to some legacy servers. I've prototyped the client itself as Winforms/C# (which was NOT fun for a C++ curmudgeon like me, but I'll live). The problem...
11
1546
by: belgie | last post by:
How can I retrieve an image (.jpg) from a web site using http with VB dotnet? thanks Bill
3
21197
by: MJ | last post by:
Automatically download and save pdf files from a website. Is there a way to do this? I would like to automate a daily procedure for downloading and saving a couple of dozen pdf from several websites. Currently I have saved bookmarks in a browser and manually open and save each one. Some of the files have direct addresses, for example:...
0
1325
by: Web learner | last post by:
Individual file download works fine. But when I try to download multiple files, for example using wildcards in the following code, I get error. How to solve it? System.Net.WebClient Client = new System.Net.WebClient(); Client.DownloadFile("ftp://123.123.456.0/*.RPT", @"C:\downloadedFiles\*.RPT"); Are there other possibilities??
8
6331
by: ad | last post by:
How can I download a file form Server to client?
1
1395
by: apondu | last post by:
Hi, I am new to web services and i am facing a problem. I am interested in downloading some file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in the web service which i am coding and use it for furthur. In normal window application i can achieve this by the...
0
1344
by: apondu | last post by:
Hi, I am new to web services and i am facing a problem. I am interested in downloading some file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in the web service which i am coding and use it for furthur. In normal window application i can achieve this by the...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, 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. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
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...
0
6260
agi2029
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...
0
3643
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...
1
2083
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
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.