{I+=codeWee;} |
void CreateDir(char* Path) { char DirName[256]; char* p = Path; char* q = DirName; while (*p) { if (('\\' == *p) || ('/' == *p)) { if (':' != *(p - 1)) { CreateDirectoryA(DirName, NULL); } } *q++ = *p++; *q = '\0'; } CreateDirectoryA(DirName, NULL); }