asp.net列出某文件夹下的所有文档包括子目录下的档案

上传:weixin_26524 浏览: 6 推荐: 0 文件:PDF 大小:35.32KB 上传时间:2021-01-03 17:09:06 版权申诉
代码如下: protected void Page_Load(object sender, EventArgs e) { //指定目标文件夹 string directory = @”C:\Windows\Microsoft.NET\Framework\v3.5′′; IterationFile(directory); } private void IterationFile(string path) { DirectoryInfo di = new DirectoryInfo(path); //输出当前目录。 Response.Write(di.ToString
上传资源
用户评论