FolderExists()
Monday, June 26, 2006
bool FolderExists(TCHAR *szPath)
{
DWORD dwAttr = GetFileAttributes(szPath);
if (dwAttr & FILE_ATTRIBUTE_DIRECTORY)
{
return TRUE;
}
return FALSE;
}
Bear in mind, however, that this could also return false if there was a permissions error. I'll let you expand upon it as like.