int mkdir(string path)
Returns 0 if the new directory was created successful, -1 otherwise.
Makes a directory/folder on the user's filesystem. Remember to use double backslashes in the path.
if (mkdir("c:\\abc\\mynewfolder") == 0) { msgBox(MB_OK, "Successful", "The folder was created successfully."); } else msgBox(MB_OK | MB_ICONWARNING, "Error", "The folder could not be created.");