Utilities.ChangeFileExt Method

Applies to TestComplete 12.60, last modified on September 17, 2018
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(FileNameExt)

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

aqFileSystem.RenameFile Method
aqFileSystem.GetFileName Method
aqFileSystem.GetFileFolder Method
aqFileSystem.GetFileExtension Method

Highlight search results