WIN32_FIND_DATA fd;
CString tmpStr = m_sDstDir;
tmpStr += myT"/dir";
HANDLE hFind = FindFirstFile(tmpStr, &fd);
if (!(hFind != INVALID_HANDLE_VALUE) || !(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
{
MessageBox("没有找到导出目录中的'dir'子目录,请确认你的导出路径!", "错误", MB_OK);
}
FindClose(hFind);
转载于:https://www.cnblogs.com/iapp/archive/2012/09/05/3631783.html