download multiple files using wildcards with WebClient.DownloadFile()

W

Web learner

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??

web_learner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top