首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2013-02-20 
关于获取文件夹中指定类型的文件string[] openfilepathopenfilepath Directory.GetFiles(Application.St

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

热点排行