YOURE THE BOSS
words, don't type
RENAME "AFILE/BAS" TO "BFILE"
[INTER) . The
Computer
would RENAME the file,
however
"BFILE" would not have an extension.
This would cause a
problem when you try to
LOAD
"BFILE," since all files you LOAD must
have
an extension.
This
might seem to conflict
with
what we said
above. You were able to
SAVE
"AFILE" without
assigning it an
extension
because
the Computer
automatically
assigned
it one when it saved it.
RENAME
works
differently The Computer won't
automatically assign an
extension
to a
program
you rename.
NotesThere is one way
toLOAD "BFILE" wlthoutan
extension. This
is
by indicating that there Is no exten-
sion
by
typing LOAD "BFILE/"
(ERIEE).
This is awk-
ward. That's why we suggest, when renaming a
file,
you always assign it an
extension.
Multi-Disk Drives
You can
RENAME a file on another disk drive,
simply by typing the appropriate drive number.
Insert a formatted disk in drive 1 {if it's not
already inserted). Store a file on it:
10 PRINT "ACCOUNTING" 1 ENTER]
SAME
"0LDACC/DAT:1"
(INTER]
and
RENAME it by typing:
RENAME "0LDACC/DAT:1" TO
"NEWACC/DAT
:
1"
(enteB)
Nate:
If
you want your
renamed
file
on a
different
drive, you can't use RENAME. Use COPY.
I
ALMOST OUT OF DISK SPACE?
Sooner or later, you'll want to know how much
space you have left on your disk. Type:
PRINT FREE(0) (ENTER]
The Computer prints the number
of
FREE "gran-
ules"
remaining
on your disk.
There
are
68
granules
in all.
If the Computer tells
you
that
you have
only
one
granule FREE, you'd
better do one of the following: start
using another
disk or "KILL" some of your
disk
files.
KILLing a disk file does just
what the name
implies. For example, if you put
"CHANGE" on
your disk in
Chapter
2,
type:
KILL
"CHANGE/BAS" (ENTER)
Check your directory
and the FREE space remain-
ing on your disk. "CHANGE/BAS" is no longer on
your
disk. The
space
it occupied is now FREE for
new files.
Notice, we had to include
CHANGE'S extension,
"BAS"
in
order to
KILL it. The Computer insists
you
type
the
complete
filename as one extra pre-
caution. It doesn't want to KILL a file you don't
want destroyed.
Note: Want to get very technical? The data will still
exist
on the
disk after
you KILL a
file.
However, the
Computer won't know it's there because KILL deletes
all reference to
it in the dish's directory. Therefore,
you'll no longer be able to access the data and the
Computer will be able to write over it with a new
file.
Multi-Disk Drives
You can use FREE
and
KILL
on other disk
drives,
as you
can
with RENAME, by typing the drive
number. Examples:
PRINT FREE(l)
INTER)
tells
you
how
much
FREE
space
is on
the disk in
drive 1.
KILL "NEWACC/DAT:
1"
(ENTER]
deletes
"NEWACC/DAT" from the disk in drive 1.
SPECIAL MULTI-DRIVE
COMMANDS
In the rest of this chapter, we'll talk about two
commands which you can use if you have a multi-
drive
system.
If
you
don't have one, go on to
"Chapter Checkpoint" at the end of this chapter.
20