string x = txtpath.Text;
            DirectoryInfo theFolder = new DirectoryInfo(x);
            FileInfo[] fileInfo = theFolder.GetFiles();
            foreach (FileInfo NextFile in fileInfo)  //遍历文件
            {
                var filename = NextFile.Name;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案