首页 > 其他 > 详细

判断指定路径文件夹是否存在,如果不存在就新建文件夹

时间:2017-03-13 12:53:33      阅读:226      评论:0      收藏:0      [点我收藏+]

void CWireLessDlg::CreatePakcetFile()
{
 CString   strFolderPath;
 strFolderPath = _T("D:\\无线通信板报文存储文件夹");
 if(!PathIsDirectory(strFolderPath))//判断路径是否存在     
    CreateDirectory(strFolderPath,NULL);//新建文件夹
 strFolderPath = _T("D:\\无线通信板报文存储文件夹\\UDP");
 if(!PathIsDirectory(strFolderPath))//判断路径是否存在     
    CreateDirectory(strFolderPath,NULL);//新建文件夹
}

判断指定路径文件夹是否存在,如果不存在就新建文件夹

原文:http://www.cnblogs.com/judes/p/6541944.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!