Copyfileto('dd.txt','hh.txt');
dd.txt--->hh.txt并覆盖

解决方案 »

  1.   

    copy(lpSourceFileName,lpExistingFileName,False)
      

  2.   

    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 
       );
      

  3.   

    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 
       );