DirectoryInfo dir = new DirectoryInfo(ReportPathDispatch);
foreach (FileInfo fi in dir.GetFiles("*.xls"))
{
if (fi.Name == strExcelName)
{

// 这个 fi 就是你要的 xls 文件
}
}

 

ReportPathDispatch是文件的物理路径
例如:D:\ems\EMSReport\Report\调度报表,这个文件夹下面的内容;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2022-01-17
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-07-02
相关资源
相似解决方案