from the directory.
If
the space were freed, it would be possible for a new file
to
overwrite the start
of
a current file.
If
the file
is
the last file
on
the tape,
the file space will be set free for further use.
To remove a block
of
files from the middle
of
a tape, and free the tape for
new files,
o Use the
PIP
program
to
transfer the files
at
the end
of
the tape into the
RAM disk.
o ERAse all files from the block you want
to
delete
to
the end.
o Use the
PIP
program
to
replace the end files back
on
the tape.
WARNING:
The directory is only updated in memory when disk access is carried
out. Only when the tape is removed will the directory be written to
tape.
It
is
especially important to remove a tape using the correct
procedure
if
the
ERA
command has been used on a Microcassette
tape.
3-24
3.7.3
REN
(Rename a
file)
Ii,IIII@"
REN new filename = old filename
A file can be renamed at any time by giving this command followed by the new
filename, an equals sign and the old filename. There must be a space between
REN and the new filename. although it
is
optional either side
of
the equals sign.
A>REN
NEW.COM = OLD.COM
A>
has changed the filename
"OLD.COM"
to
"NEW.COM".
If
the new filename you have chosen already exists
on
that drive, the message
FILE EXISTS
is
displayed and the comIhand line reappears:
A>
REN TESTING.BAS = DEMO.BAS
FILE EXISTS
This indicates that there
is
already a file
on
drive A: called TESTING.BAS.
This can also happen
if
you specify the names the wrong way round, since a
test
is
carried out
on
the new name before carrying
out
the renaming.
If
a drive name
is
specified it must be placed before new filename:
C>REN
A:START.COM = TESTING. COM
This example will have the result
of
renaming a file
on
drive A: called TEST-
ING.COM to be called START.COM.
Bear in mind that this command only renames the file, so the old filename dis-
appears from the directory and is replaced by the new name while the file itself
remains exactly the same. Another important thing
to
remember
is
"that
you
can only rename files
on
one drive, . for example:
C>
REN A:DEMO.COM = B:TESTING.COM
is
not allowed and will result in the message:
B:TESTING.COM?
3-25