您的位置:首页 > 其它

如何判断某个路径是否存在? 如判断C:/file/photo/目录是否存在

2009-05-25 14:34 281 查看
CFileFind finder;
static const TCHAR szFileToFind[] = _T("C://SYS");
if (finder.FindFile(szFileToFind))
{
finder.FindNextFile();
//AfxMessageBox(finder.GetFileName());
if (!finder.IsDirectory())
{
AfxMessageBox("C://SYS是文件");
}
else
{
AfxMessageBox("C://SYS是文件夹");
}
}
else
{
AfxMessageBox("没有发现C://SYS");
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐