摘要: 1: 递归 http://blog.csdn.net/ever_snow/article/details/72194162:DirectoryInfo类 这里以获取test文件夹及其子目录下的所有.jpg文件为例:1 DirectoryInfo directory = new DirectoryInfo("D:\\test");2 FileInfo[] files = directory.GetFiles("*.jpg", SearchOption.AllDirectories);3 foreach (FileInfo di... 阅读全文
posted @ 2012-06-21 10:30 tangqq 阅读(668) 评论(0) 推荐(0) 编辑