从http目录下载多个文件到我的电脑 [英] download multiple files from http directory to my pc

查看:115
本文介绍了从http目录下载多个文件到我的电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想从http目录下载所有文件,发现此代码但仅适用于1个文件:

Hello,
I want to download all files from an http directory, found this code but it is only for 1 file :

Private sub button1_click(sender as system.object, e as system.eventargs) handles button1.click
my.computer.network.downloadfile("http://portal.ws/Schedule.xlsm", "L:\User\testing.xlsm")
end sub



如何一次下载多个文件,例如。目录的所有* .xlsm文件?


how to download multiple files at once eg. all *.xlsm files of the directory?

推荐答案

您必须将所有文件包含在一个zip中并下载zip,否则客户端需要制作多个请求和每个请求将下载一个文件。每个请求只能下载一个文件,因为每个请求只能有一个响应。
You'd have to include all files in one zip and download the zip, or the client will need to make multiple requests and each request will download one file. You can only download one file per request as each request can only have one response.


这篇关于从http目录下载多个文件到我的电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆