MFC 创建一个文件夹
void CFileTestDlg::OnBnClickedButton4()
{
// TODO: Add your control notification handler code here
CString strFolderPath("D:\\test");
if (PathIsDirectory(strFolderPath))
{
MessageBox(_T("文件夹已经存在!"));
}
else
CreateDirectory(strFolderPath, NULL) ;
}

浙公网安备 33010602011771号