OSRENAME()

OSRENAME()

Top  Previous  Next

 

The OSRENAME() function renames an operating system file or directory.

 

 

Format

 

OSRENAME(old.name, new.name)

 

where

 

old.nameis the old name of the item.

 

new.nameis the new name of the item.

 

 

The OSRENAME() function renames operating system item old.name to new.name. The items do not need to be in the same directory but, on Windows, must be on the same drive partition or, on Linux, must be in the same file system.

 

The function returns True if successful, False if it fails. The STATUS() function can be used to determine the cause of failure.