你先用findfirst找到你所要寻找目录的文件名的文件
然后你再通过检测这个文件的属性是不是目录属性
文件的属性在结构find_t(由dos.h头文件中定义)的attrib成员中
例:
struct find_t
{
long reserved;
long size; /* size of file */
unsigned long attrib; /* attribute byte for matched file */
unsigned short wr_time; /* time of last write to file */
unsigned short wr_date; /* date of last write to file */
char name[256]; /* asciiz name of matched file */
};