开发者

How to download multi files in c# [closed]

开发者 https://www.devze.com 2023-01-16 13:24 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

i won't to download multi files at th开发者_如何转开发is same time using c#, but i don't know how.

Please help.


You should be able to use the WebClient class.

        WebClient client = new WebClient();
        client.DownloadFileAsync(new Uri("http://test.com/file1"), "C:/Localfile1");
        client.DownloadFileAsync(new Uri("http://test.com/file2"), "C:/Localfile2");


If your trying to serve multiple download files on an asp.net post back, I've had alot of success zipping the files together on the fly, and streaming the result as the response.

edit -

This does not seems like what your trying to do, sorry.

0

精彩评论

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