Description: This statement renames an existing file.
Returns: Nothing
Usage: Script
Format: Rename(OldName, NewName)
Parameters: OldName { text } { required } { no default: }
Any text expression for the current name of the file to be changed.
NewName { text } { required } { no default: }
Any text expression for the new name that the file is to be changed to.
Comments: This statement will rename the file regardless of its attributes and the attributes will not be changed. If the file to be renamed does not exist, a file will not be created.
Example:
Rename(Concat(appPath, "TestMod.SRC"),
Concat(appPath, "Test1.SRC"));
This statement changes the name of a file from "TestMod.SRC" to "Test1.SRC".
See Also: