C#:如何在不使用web浏览器的情况下将文件下载到特定的文件路径
我有一个链接 如何在不使用web浏览器的情况下将其下载到特定的文件位置。 :C#使用方法C#:如何在不使用web浏览器的情况下将文件下载到特定的文件路径,c#,hyperlink,download,C#,Hyperlink,Download,我有一个链接 如何在不使用web浏览器的情况下将其下载到特定的文件位置。 :C#使用方法 WebClient wc = new WebClient(); wc.DownloadFile("http://sth.com/sth.zip", "sth.zip");
WebClient wc = new WebClient();
wc.DownloadFile("http://sth.com/sth.zip",
"sth.zip");