Kassem Sandarusi

Kassem Sandarusi

  • NA
  • 4
  • 26.9k

C# Updater (Using Webclient)

Jan 18 2011 9:12 PM

What I wanna know is how would I use the WebClient object to download files to a possibly nonexistent directory automatically?

like for instance:



 WebClient downloader = new WebClient();
downloader.DownloadFileASync(new Uri("http://127.0.0.1/Updates/Data/dlme.txt"), "/Data/dlme.txt"); // Second argument needs help.



I was wondering how I would be able to download to the /Data directory even though it may be nonexistent... would I have to go through a lengthy process or what?

Answers (2)