using (var client = new System.Net.WebClient()) { client.Credentials = new System.Net.NetworkCredential("username", "password"); var localPath = @"\\xxx.xxx.xxx.xxx\folder\MineFile.txt"; var remotePath = "https://test.com:xxxx/folder/MineFile.txt"; client.DownloadFile(remotePath, localPath); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)