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:

    0

  • If not successful, then it returns the following value:

    Negative 1

Format

Clib.rename(oldName, newName)

Table 129 describes the arguments for the Clib Rename File method.

Table 129. Arguments for the Clib Rename File Method
Argument
Description

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.

Siebel eScript Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.