extern TCHAR* pOldName;
extern TCHAR* pNewName;
try
{
CFile::Rename( pOldName, pNewName );
}
catch(CFileException* pEx )
{
#ifdef _DEBUG
afxDump << "File " << pOldName << " not found, cause = "
<< e->m_cause << "\n";
#endif
pEx->Delete();
}
或者 MOVE FILE
posted on 2008-02-07 16:21
cpsprogramer 阅读(1736)
评论(2) 编辑 收藏 引用 所属分类:
VC++