voidGetAllDirList(String^ path,List^ list)
{
array^dirs = Directory::GetDirectories(path);
for each(String^ dir in dirs )
{
FileInfo^ info = gcnew FileInfo(dir);
if((info->Attributes & FileAttributes::Hidden) == FileAttributes::Hidden )//过滤掉隐藏文件
continue;
list->Add(dir);
GetAllDirList(dir,list);//递归
}
}