Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > rename()

 

rename()

Syntax

file("whichfile").rename("newName")

Description

Multiuser Server server-side function; renames the specified file to newName. The function returns a nonzero error code if it fails.

Example

This server-side statement renames the file Sunset.bmp to Horizon.bmp:

file("HardDrive:Images:Sunset.bmp").rename("Horizon.bmp"