CFileFind OneFile;
BOOL bWorking = FALSE;
long total = ; if (strPath.Right() != "\\")
{
strPath += "\\*.*";
} bWorking = OneFile.FindFile(strPath);
while (bWorking)
{
bWorking = OneFile.FindNextFile();
if (OneFile.IsDirectory() && !OneFile.IsDots())
{
total++;
}
}
OneFile.Close();
return total;