GetDir Procedure

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

The GetDir procedure returns the current folder.

Declaration

GetDir(DrvDirName) Parameters
Drv [in] Optional Integer Default value: 0
DirName [out] Required String
Result     String  

Description

Returns the current folder located on the specified drive.

Parameters

The procedure has the following parameters:

Drv

Specifies the variable that holds the specified drive name. The default value means that the specified drive is the current one.

DirName

Contains the received path.

Note: This procedure does not check for errors. If the specified drive is invalid, GetDir returns the root directory of the non-existent drive.

See Also

DelphiScript - List of Supported Routines and Variables
ChDir
MkDir
RmDir

Highlight search results