MkDir Procedure

Applies to TestComplete 14.72, last modified on December 24, 2020

The MkDir procedure creates a new subdirectory with the specified name.


MkDir(DirName) Parameters
DirName [in] Required String
Result     None  


Creates a new folder with the specified name. The last item in the specified path cannot be an existing folder. If the specified path is not complete, the new folder is relative to the current folder (see GetDir ).

Note: The MkDir procedure can only create the last element of the specified path, so if DirName specifies non-existent folders before the last one, the operation fails.


The procedure has the following parameter:


Specifies the variable which holds the path to the new subfolder, where the last item is the name of this subfolder.

See Also

DelphiScript - List of Supported Routines and Variables

Highlight search results