TCHAR szPath[MAX_PATH] = {0};
GetModuleFileName( AfxGetInstanceHandle(), szPath, MAX_PATH );
LPTSTR pPath = _tcsrchr( szPath, _T('\\') );
if ( NULL == pPath )
pPath = _tcsrchr( szPath, _T('/') );
if ( pPath )
pPath[0] = _T('\0');
//CStdTools::GetModulePath( szPath );
m_strConfigFile = szPath;
m_strConfigFile += _T("\\config.xml");
m_strSrcExe = szPath;
GetModuleFileName( AfxGetInstanceHandle(), szPath, MAX_PATH );
LPTSTR pPath = _tcsrchr( szPath, _T('\\') );
if ( NULL == pPath )
pPath = _tcsrchr( szPath, _T('/') );
if ( pPath )
pPath[0] = _T('\0');
//CStdTools::GetModulePath( szPath );
m_strConfigFile = szPath;
m_strConfigFile += _T("\\config.xml");
m_strSrcExe = szPath;
m_strSrcExe += _T("backup\\backup.exe");
CFileFind FileFind;
if ( !FileFind.FindFile( m_strSrcExe ) )
m_strSrcExe.Empty();
if ( !FileFind.FindFile( m_strDirSrc ) )
m_strDirSrc.Empty();
if ( !FileFind.FindFile( m_strDirDes ) )
CreateDirectory( m_strDirDes, NULL );
if ( !FileFind.FindFile( m_strInstall ) )
CreateDirectory( m_strInstall, NULL );