| RENAME Command | Reference/Commodore BASIC V3.5
RENAME [Ddrive#,] "old name" TO "new name" [,Uunit#]
Renames a file on disk. As long as the two names are supplied, this command will never cause an error, not even ?DEVICE NOT PRESENT ERROR if there's no drive connected. If the rename command fails because the old filename does not exist, the DS$ will return "62, FILE NOT FOUND, 00, 00". Wildcards in the filenames are not valid. If a wildcard is used, DS$ will return "30, SYNTAX ERROR, 00, 00".
RENAME "TEST" TO "FINALTEST" Changes the name of the file "TEST" to "FINALTEST"
RENAME D0,"ALPHA" TO "BETA",U9 Changes "ALPHA" to "BETA" on device 9
RE SHIFT+N |
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |