开发者

C# : How to download a file into specific file path with out using web browser

I have a link ,

http://localhost/pro开发者_开发问答ject/slide.pptx

How to download it into specific file location without using web browser. : C#


Use WebClient.DownloadFile(Uri,String) method.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜