Utilities.ExtractFileName Method

Applies to TestComplete 14.10, last modified on June 5, 2019
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

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

Highlight search results