BOOL IsFolderFile(CString strFileName,CString strPath)
{
CFileFind m_FileFind;
BOOL bIsExist=FALSE;
CString strFilePath=_T("");
strFilePath=strFilePath+L"\\"+strFileName;
if (strPath.Right(1)!=L"\\")
strPath+=L"\\";
strPath+=L"*.*";
bIsExist=m_FileFind.FindFile(strPath);
while(bIsExist)
{
bIsExist=m_FileFind.FindNextFile();
if(m_FileFind.IsDirectory())
{
IsFolderFile(strFileName,m_FileFind.GetFilePath());
}else
{
if(m_FileFind.GetFilePath()==strFilePath)
return TRUE;
}
}
return FALSE;
}