日期:2014-05-18  浏览次数:20838 次

如何统计指定文件夹下含有.xml格式的文件数目?
如题

------解决方案--------------------
Directory.GetFiles(@"路径", "*.xml").Length
------解决方案--------------------
包含子目录的话:Directory.GetFiles(@"路径", "*.xml",SearchOption.AllDirectories).Length