BOOL CopyFile( LPCTSTR lpExistingFileName, LPCTSTR lpNewFileName, BOOL bFailIfExists ); Parameters lpExistingFileName [in] Long pointer to a null-terminated string that specifies the name of an existing file. lpNewFileName [in] Long pointer to a null-terminated string that specifies the name of the new file. bFailIfExists [in] Boolean that specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds. DeleteFile The DeleteFile function deletes an existing file. BOOL DeleteFile( LPCTSTR lpFileName // file name );
LPCTSTR lpExistingFileName,
LPCTSTR lpNewFileName,
BOOL bFailIfExists ); Parameters
lpExistingFileName
[in] Long pointer to a null-terminated string that specifies the name of an existing file.
lpNewFileName
[in] Long pointer to a null-terminated string that specifies the name of the new file.
bFailIfExists
[in] Boolean that specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds. DeleteFile
The DeleteFile function deletes an existing file. BOOL DeleteFile(
LPCTSTR lpFileName // file name
);