MkDir Procedure

Applies to TestComplete 15.47, last modified on January 20, 2023

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

Declaration

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

Description

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.

Parameters

The procedure has the following parameter:

DirName

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
ChDir
GetDir
RmDir

Highlight search results