当前位置: 代码迷 >> C# >> 关于获取文件夹中拇指定类型的文件
  详细解决方案

关于获取文件夹中拇指定类型的文件

热度:9081   发布时间:2013-02-25 00:00:00.0
关于获取文件夹中指定类型的文件
string[] openfilepath;
openfilepath  = Directory.GetFiles(Application.StartupPath + "\\" + comboID.Text + "\\" + comboYear.Text + "\\" + comboMonth.Text + "\\" + comboDay.Text + "\\" + comboHour.Text  + "\\"+"*.jmms");

我想查看的是jmms类型的文件,上面这个代码报错,怎么修改才对呢?如果我去掉"*.jmms"就是打开所有类型文件了,求解救啊求解救啊...

------解决方案--------------------------------------------------------
openfilepath  = Directory.GetFiles(Application.StartupPath + "\\" + comboID.Text + "\\" + comboYear.Text + "\\" + comboMonth.Text + "\\" + comboDay.Text + "\\" + comboHour.Text + "\\", "*.jmms");

  相关解决方案