求教

解决方案 »

  1.   

    BOOL FileExist(LPCTSTR lpcsFileName)
    {
       /* Check for existence */
    #ifdef _UNICODE
       if( (_waccess( lpcsFileName, 0 )) != -1 )
    #else
       if( (_access( lpcsFileName, 0 )) != -1 )
    #endif
       return TRUE;
       return FALSE;
    }
    试试这个函数!
      

  2.   

    _access("Driver:\\Dir\\FileName", 0 )) != -1)
      

  3.   

    int _access( const char *path, int mode );mode   Value Checks File For 
    -----------------------------
    00     Existence only 
    02     Write permission 
    04     Read permission 
    06     Read and write permission