Utilities.ChangeFileExt Method

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

Description

The Utilities.ChangeFileExt method takes the file name specified by the FileName parameter, changes its extension to the string passed as the Ext parameter (it must include the initial dot character) and returns the resulting string. The file whose extension is modified is not actually renamed, the function just returns the new file name.

Declaration

Utilities.ChangeFileExt(FileName, Ext)

FileName [in]    Required    String    
Ext [in]    Required    String    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

FileName

Specifies the name of the file whose extension should be changed.

Ext

Specifies the new extension of the file.

Result Value

The file name with the new extension.

Remarks

This method is obsolete. It is supported for backward compatibility only. To process files, use the methods of the aqFile object.

See Also

RenameFile Method
GetFileName Method
GetFileFolder Method
GetFileExtension Method

Highlight search results