Dragon Data DOS and command RENAME

Hardware Hacking, Programming and Game Solutions/Cheats
Post Reply
pser1
Posts: 1655
Joined: Sun Mar 25, 2012 7:32 pm
Location: Barcelona (SPAIN)

Dragon Data DOS and command RENAME

Post by pser1 »

just for your info ...

According to the book "An Introduction To DragonDOS" by Alan Mayer
we can see this text in the RENAME command
-------------------------------------------------------------------------------------------
RENAME
The command RENAME is used to change the name of a file on a disk,
or to transfer a file from disk to disk.
RENAME”OLDNAME.BIN” TO “NEWNAME.BIN”
gives the file OLDNAME.BIN the new name NEWNAME.BIN.
Note that the filetype (in this case, BIN) must be included in the specification
of both names
---------------------------------------------------------------------------------------------
This seems to grant that we could use RENAME as a COPY command
between two different drives ...
But if you do this between disks you will have a problem!
Assuming the origin has the file to be copied at the 5th entry in the directory, then
RENAME"1:FILENAME.EXT"TO"2:FILENAME.EXT"
Will look in the destination drive for the 5th entry and if found, will simply rename
that one to be "FILENAME.EXT" without copying the program.
You will end up with a disc where a program has been renamed silently retaining the file length,
the old data and the free bytes, of course :cry:
So, CAREFULL, it is much better to use the COPY command instead

I have tried this command with these DOS versions:
DDOS10, DDOS11C, DDOS12A, DDOS13A, DDOS41, SDOSE8 and all of them have failed the same way :(
Only the DPlus49b acts more friendly and gives a Syntax Error instead. Better that than spoiling file names.

cheers
pere
Post Reply