| Siebel eScript Language Reference > C Language Library Reference > Clib File and Directory Methods > Clib Rename File Method
 The Clib Rename File method renames a file. It returns one of the following values: 
If successful, then it returns the following value:
0If not successful, then it returns the following value:
Negative 1 FormatClib.rename(oldName, newName) Table 129 describes the arguments for the Clib Rename File method. 
Table 129.	Arguments for the Clib Rename File Method
    |  |  |  
    | oldName | A string that contains the name of the file that this method renames. This name can be an absolute file name or a relative file name. |  
    | newName | A string that contains the new file name. |  
 |