i just found a little piece of code that let me create a directory with windows API without using system(). The only problem is that i can't create directory in subdirectory. For example
#include<windows.h>
int main(){
CreateDirectory ("C:\\random", NULL);
return 0;
}
Create a folder named random in C.
But if i do
#include<windows.h>
int main(){
CreateDirectory ("C:\\Users\morons", NULL);
return 0;
}
It creates in C che folder named Usersmorons and not the folder morons under Users. Any suggest?