string url = "http://"; // Download File path
System.Net.WebClient myWebClient = new System.Net.WebClient();
myWebClient.Credentials = new System.Net.NetworkCredential("User Name", "Password", "Domain");
string sFile ="C:\\"; //Path to save file
myWebClient.DownloadFile(url, sFile);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment