void CClearObjDlg::OnBnClickedOk()
{
USES_CONVERSION;
CFolderPickerDialog FolderPath;
CString strPath, strCmd;
if (IDOK==FolderPath.DoModal())
{
strPath = FolderPath.GetFolderPath();
strCmd.Format(_T("del /f /s /q %s\\*.aps "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.ncb "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.opt "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.plg "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.positions "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.obj "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.pch "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.res "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.idb "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.ilk "), strPath);
system(W2A(strCmd));
strCmd.Format(_T("del /f /s /q %s\\*.pdb "), strPath);
system(W2A(strCmd));
}
CDialogEx::OnOK();
}
删除编译文件
最新推荐文章于 2023-05-06 23:34:29 发布