You can use CreateDirectory, a Windows API function.
http://msdn.microsoft.com/library/de...edirectory.asp
I have never really used it, but I'd imagine that something like this would work:
Code:
#include <stdio.h> //For NULL definition.. I think this is necessary... or is it? Also puts().
#include <windows.h>
int main ()
{
if (CreateDirectory("C:\\Program Files\\blah", NULL) != TRUE)
puts("Oh no an error :(");
return 0;
}
[edit] It works but that link should be replaced with
http://msdn.microsoft.com/library/de...edirectory.asp