BOOL CNamedIndexesOptimiser::CopyFile(char* szDestName, char* szSourceName)
{
	CFileUtil				cFileUtil;
	CChars					szFullName;
	BOOL					bResult;

	bResult = cFileUtil.Copy(TempFileName(&szFullName, szSourceName), szDestName);
	szFullName.Kill();
	return bResult;
}
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());
}