Utilities.ExtractFileDrive Method

Applies to TestComplete 15.10, last modified on December 15, 2021
This method is obsolete. See the Remarks section below.

Description

The Utilities.ExtractFileDrive method extracts the drive part from the FileName parameter.

Declaration

Utilities.ExtractFileDrive(FileName)

FileName [in]    Required    String    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

FileName

Specifies the file name from which the drive part should be extracted.

Result Value

A string that holds the drive part extracted from the specified file name. For file names with drive letters, the resulting value will have the following format: '<drive>'. For file names with a UNC path, the format of the resulting value will be '\\<servername>\<sharename>'.

Remarks

This method is obsolete. It is supported for backward compatibility only. To extract the drive part from a file name, use the aqFileSystem.GetFileDrive or aqFileInfo.Drive method.

See Also

GetFileDrive Method
Drive Property
GetFileFolder Method
GetFileFolder Method
Path Property
GetFileName Method
Name Property
GetFileExtension Method
GetRelativePath Method
GetShortPathName Method

Highlight search results