I have the following code:
string name;
getline(cin,name);
ofstream foldercreator(name + "folder.bat");
foldercreator << "if not exist \"" << name << "\" mkdir " << name << endl;
foldercreator << "exit";
The problem is, that
string batname = "start " + name + "folder";
system(batname);
system("start " + name + "folder");
doesn't work either.
The only problem is, that it cannot open the file.