Utilities.ExtractFileName Method

Applies to TestComplete 15.69, last modified on November 13, 2024
This method is obsolete. See the Remarks section below.

Description

The Utilities.ExtractFileName method returns the name and extension parts of the given file name, which may also include the drive and directory parts.

Declaration

Utilities.ExtractFileName(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 name and extension parts should be extracted.

Result Value

A string that holds the name and extension parts extracted from the specified file name.

Remarks

This method is obsolete. It is supported for backward compatibility only. To extract the file name and extension from a file path string, use the aqFileSystem.GetFileName or aqFileInfo.Name method.

See Also

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

Highlight search results