日期:2014-05-20 浏览次数:21002 次
string[] fileNames=System.IO.Directory.GetFiles("C:\","*.txt",SearchOption.AllDirectories);
------解决方案--------------------
Directory.GetFiles(string path,string searchPattern,SearchOption searchOption)
public static string[] GetFiles(string path,string searchPattern,SearchOption searchOption)