HTBasic Help
×
Menu
Index

RENAME

Changes the name of a file.
 
 RENAME old-file-specifier TO new-file-specifier
 
Usage:
XT=RENAME "PROG.DAT" TO "CURVE.DAT"
RENAME "X" TO "Xcalc"
RENAME Volume$&Old$ TO New$
Example: RENAME.BAS
Description:
RENAME changes the name of a file. Both the old and the new names may be specified as string expressions. The new name must not already exist on the mass storage device.
If you are using RENAME to move a file from one place in a hierarchical file system to another, the HTBasic RENAME requires that both file specifiers be complete and both directories be on the same mass storage device. HTBasic does not require that the destination be on the same mass storage device.
See Also: