m_TempfPathName=_T("C:\\~TempExam");
CFileStatus rStatus;
if(!CFile::GetStatus(m_TempfPathName,rStatus))
{
  //文件不存在
}

解决方案 »

  1.   

    FindFirstFile
    FindNextFile
    如果要搜索子文件夹的话要还是这两个函数就够了
      

  2.   

    用 MFC CFileFind类 
      

  3.   

    int rename( const char *oldname, const char *newname );
      

  4.   

    DWORD SearchPath(
      LPCTSTR lpPath,      // search path
      LPCTSTR lpFileName,  // file name
      LPCTSTR lpExtension, // file extension
      DWORD nBufferLength, // size of buffer
      LPTSTR lpBuffer,     // found file name buffer
      LPTSTR *lpFilePart   // file component
    );