コード例 #1
0
BOOL CNamedIndexesOptimiser::CopyFile(char* szDestName, char* szSourceName)
{
	CFileUtil				cFileUtil;
	CChars					szFullName;
	BOOL					bResult;

	bResult = cFileUtil.Copy(TempFileName(&szFullName, szSourceName), szDestName);
	szFullName.Kill();
	return bResult;
}
コード例 #2
0
BOOL CDurableFile::CopyBackupToPrimary(void)
{
	CFileUtil	cFileUtil;

	if (IsBegun())
	{
		return FALSE;
	}

	if (!cFileUtil.Copy(mszRewriteName.Text(), mszFileName.Text()))
	{
		return FALSE;
	}
	return cFileUtil.Compare(mszFileName.Text(), mszRewriteName.Text());
}