关于获取文件夹中指定类型的文件
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");