码迷,mamicode.com
首页 > 其他好文 > 详细

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

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

标签:nbsp   path   udp   sdl   string   判断   cto   creat   his   

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

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

标签:nbsp   path   udp   sdl   string   判断   cto   creat   his   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!