Utilities.ExtractFilePath Method

Applies to TestComplete 15.47, last modified on January 20, 2023
This method is obsolete. See the Remarks section below.

Description

The Utilities.ExtractFilePath method extracts the drive and directory parts from the FileName parameter.

Declaration

Utilities.ExtractFilePath(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 and directory parts should be extracted.

Result Value

A string that holds the drive and directory parts extracted from FileName. The resulting string consists of the leftmost characters of FileName, up to and including the colon or backslash that separates the path from the name and extension.

Remarks

This method is obsolete. It is supported for backward compatibility only. To extract the drive and directory parts from a file name, use the aqFileSystem.GetFileFolder or aqFileInfo.Path method.

See Also

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

Highlight search results