windows判断创建目录

windows判断创建目录

#include <Shlwapi.h>
#pragma comment(lib, "shlwapi.lib")

//windows 判断目录是否存在,创建目录
if (!PathIsDirectory(str))
{
    ::CreateDirectory(str, NULL);
}
原文地址:https://www.cnblogs.com/studywithallofyou/p/11352974.html