比如我要查找 E:\Temp 目录(包括所有子目录)下的xml文件,代码如下:
string[] files = System.IO.Directory.GetFiles(@"E:\Tmep", "*.xml", System.IO.SearchOption.AllDirectories);

超方便!!!

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2021-09-05
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-01-07
  • 2021-12-10
  • 2021-10-15
相关资源
相似解决方案