http://www.cjjjs.com/paper/czxt/6262015421323154.aspx
1.【ANSII版本】直接调用创建多级目录API函数MakeSureDirectoryPathExists
BOOL WINAPI MakeSureDirectoryPathExists(PCSTR DirPath);
2.【Unicode和ANSII版本】Windows Shell函数,名字为SHCreateDirectoryEx
int SHCreateDirectoryEx(HWND hwnd,LPCTSTR pszPath,const SECURITY_ATTRIBUTES *psa);
SHCreateDirectoryEx(NULL,"\\\\192.168.XXX.XXX\\share\\444\\333\\456\\abc.txt", NULL);
本文介绍了两种在Windows系统中创建多级目录的方法:一种是使用ANSII版本的MakeSureDirectoryPathExists函数;另一种是使用Unicode和ANSII版本的Windows Shell函数SHCreateDirectoryEx,并给出了具体的函数原型和示例。
1107

被折叠的 条评论
为什么被折叠?



