创建文件夹

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("创建目录失败");

 

posted on 2017-08-01 14:37  feng..liu  阅读(129)  评论(0编辑  收藏  举报