请给位给个代码或者函数用~string slnpath = "E:\ats\Code\ATScode";DirectoryInfo root = new DirectoryInfo(slnpath);foreach (FileInfo f in root.GetFiles()){string filename = slnpath + f.Name;
}