◄Summary► ◄Details► ◄Example► ◄Back► Argument path String expression representing the directory to be created Description The MkDir procedure creates a specified directory. MkDir works the same as the DOS command MKDIR or MD. The path argument may be any legal DOS path, and may include the shorthand directory notation '.' and '..'. If a directory or file by the name given in path already exists, an I/O error occurs. To prevent a program from halting with a run-time error when an I/O error occurs, turn off I/O checking with {$I-} and check the return value of the IOResult function.