创建文件夹:
char buf[256];
::GetCurrentDirectory(256,buf);
//获取程序根目录路径
m_name.GetWindowText(name);
strcat(buf,"//");
strcat(buf,name);
CreateDirectory(buf,NULL);
删除文件夹:
char
buf[256];
::GetCurrentDirectory(256,buf);
m_name.GetWindowText(name);
strcat(buf,"//");
strcat(buf,name);
RemoveDirectory(buf);
获取系统文件夹路径:
GetSystemDirectory(buf,256);
获取Windows路径:GetWindowsDirectory(buf,256);
在创建文件夹时,上一级文件夹必须存在,不能创建一个包含子文件夹的文件夹