创建文件夹

CString  cstr1(_T("C:\Users\liufeng16\Desktop\测试\UVUY"));
    strcpy_s(getpath, (LPCTSTR)Path);
    CString  strFolderPath ="C:\Users\liufeng16\Desktop\测试\UVUY\oo";
        // 判断路径是否存在
    UpdateData(true);

    if (CreateDirectory((LPCTSTR)strFolderPath, NULL))//创建目录
        AfxMessageBox("成功创建了目录");
    else
        AfxMessageBox("创建目录失败");

原文地址:https://www.cnblogs.com/fengliu-/p/7268444.html