RENAME

Purpose: Rename a disk file.

Format:    RENAME    old filename      new filename

Notes:    Use this statement to change the name of a file.  Wildcards are not allowed. If the specified  old filename  parameter does not exist an error will occur.

Example:

getfile $oldfile “Select a file”
getfile $newfile “Select the filename to rename to”

rename $oldfile $newfile

exit

See Also: DELETE   COPY