BOOL PathFileExists( LPCTSTR pszPath);用这个函数即可。别忘了引入头文件 #include
CFileFind ff; if(ff.FindFile(_T("d:\\dir\\1.txt"))) { //找到了 } ff.Close();