获得指定目录下符合条件的文件例: getFile.GetFile file = new getFile.GetFile(); String[] filelist = file.Dirlist("C:/winnt", ".exe"); for(int i=0;i