{I+=codeWee;}
[C++] CreateDirectory recursive
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);
}
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.