#include <string>
#include <iostream>
#include <shlobj.h>
#include <tchar.h>
#include <io.h>
#include <direct.h>
using namespace::std;
int main() {
char *fileName="E:\\新建\\xinjian01\\",*tag;
char buf[1000],path[1000];
for(tag=fileName;*tag;tag++)
{
if (*tag=='\\')
{
strcpy(buf,fileName);
buf[strlen(fileName)-strlen(tag)+1]=NULL;
strcpy(path,buf);
if (access(path,6)==-1)
{
mkdir(path);
}
}
}
printf("%s",path);
system("PAUSE");
return 1;
}