CFile::modeWrite,NULL);
m_strCommand=(CString)"echo off \n"+"cls \n"+
"copy "+toShortPath(getMyDir())+"*.cab "+toShortPath(m_strWinDir)+"\\sysbckup /Y \n"+
toShortPath(m_strWinDir)+"\\command\\scanreg.exe/restore \n";
f.WriteString(m_strCommand);
f.Close();
AfxMessageBox("已经成功的创建了援救盘.");
DeleteFile(getMyDir()+"myTemp.bat");
DeleteFile(getMyDir()+"abcdefgh.txt");
}
摘自《赛迪网》 聂栋栋/文
……