Make Directory

? tab(-10, AG_MKDIR); dirspec; chr(127);

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 MX_MKPATH, which is the preferred way to access this function.