C#:如何使用Web浏览器将文件下载到特定的文件路径中

时间:2010-12-11 10:37:34

标签: c# hyperlink download

我有一个链接,

http://localhost/project/slide.pptx

如何在不使用网络浏览器的情况下将其下载到特定的文件位置。 :C#

2 个答案:

答案 0 :(得分:10)

答案 1 :(得分:0)

WebClient wc = new WebClient();
wc.DownloadFile("http://sth.com/sth.zip",
"sth.zip");