BOOL CopyFilesFromTmptoLocal()
{
CFileFind find;
CString strFile = TMPPATH;
strFile += _T("*.*");
BOOL bFind = find.FindFile(strFile);
while (bFind)
{
bFind = find.FindNextFile();
CString strPath = find.GetFilePath();
if (find.IsDots())
{
continue;
}
if (strPath.Find(_T("Config.ini"), 0) != -1)
{
CopyFile(strPath, CONFIGFILE, FALSE);
}
else
{
CString strName = find.GetFileName();
CopyFile(strPath, PICTUREPATH + strName, FALSE);
}
}
find.Close();
return TRUE;
}
{
CFileFind find;
CString strFile = TMPPATH;
strFile += _T("*.*");
BOOL bFind = find.FindFile(strFile);
while (bFind)
{
bFind = find.FindNextFile();
CString strPath = find.GetFilePath();
if (find.IsDots())
{
continue;
}
if (strPath.Find(_T("Config.ini"), 0) != -1)
{
CopyFile(strPath, CONFIGFILE, FALSE);
}
else
{
CString strName = find.GetFileName();
CopyFile(strPath, PICTUREPATH + strName, FALSE);
}
}
find.Close();
return TRUE;
}