Utilities.ExtractFileExt Method

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


The Utilities.ExtractFileExt method returns the extension of the given file name.



FileName [in]    Required    String    
Result String

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the file name from which the extension should be extracted.

Result Value

A string that holds the extension extracted from the specified file name. The period character that separates the name and extension parts is also included in the resulting string. If the given file name has no extension, the resulting string is empty.


This method is obsolete. It is supported for backward compatibility only. To extract the extension from a file name, use the aqFileSystem.GetFileExtension method.

See Also

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

Highlight search results