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 閱讀(1739)
評論(2) 編輯 收藏 引用 所屬分類:
VC++