download multiple files using wildcards with WebClient.DownloadFile()

  • Thread starter Thread starter Web learner
  • Start date Start date
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

Back
Top