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 subdirector
Making a windows application cross-platform, was using CreateDirectory() c++17 standard now has std::filesystem::create_directories
#include
#include
int main()
{
std::filesystem::create_directories("C:\\newfolder\\morons");
}
Needs changes in makefile to -std=c++17 and updating to a GCC compiler that supports c++17.
In visual studio follow steps here to enable c++17