使用 winapi 函数 copyfile

解决方案 »

  1.   

    The CopyFile function copies an existing file to a new file. BOOL CopyFile(    LPCTSTR lpExistingFileName, // pointer to name of an existing file 
        LPCTSTR lpNewFileName, // pointer to filename to copy to 
        BOOL bFailIfExists  // flag for operation if file exists 
       );
      

  2.   

    用CopyFile:
    BOOL CopyFile(LPCTSTR lpszExistingFile, LPCTSTR lpszNewFile, BOOL fFailIfExists)
      

  3.   

    用COPYFILE(),MOVEFILE还有删除的操作吧。