CString strOldName= "c:\\1.exe "; CString strNewName= "c:\\2.exe "; CFile::Rename(strOldName,strNewName);