Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >

Clib.rename() Method


This method renames a file.

Syntax

Clib.rename(oldName, newName)

Parameter
Description
oldName
A string representing the name of the file to be renamed
newName
A string representing the new name to give the file

Returns

0 if successful; otherwise, -1.

Usage

This method renames a file. The oldName parameter may be either an absolute or a relative filename.


 Siebel eScript Language Reference 
 Published: 18 April 2003