C++自动创建文件夹

     
       string Srcpath = "D:\\Desktop\\dddd";
       if ((_access(Srcpath.c_str(), 0)) != 0) // 判断Srcpath路径下的文件夹dddd是否存在,如果不存在,自动新建文件夹dddd
       {
              string dd = "md " + Srcpath;
              system(dd.c_str());
       }
 

posted on 2017-07-10 19:52  Angelo.wan  阅读(524)  评论(0编辑  收藏  举报

导航