? tab(-10, AG_MKDIR); dirspec; chr(127);
The function AG_MKDIR (32) creates a Windows directory. To return a status code indicating if the operation succeeded, add a ",1" parameter, i.e.
? tab(-10,AG_MKDIR);dirspec;",1";chr(127);
input "",status
For more information, see MIAMEX MX_MKDIR (38), which is the preferred way to access this function.