EasyManua.ls Logo

Tandy TRS-80 - Chapter 41 Youre the Boss

Tandy TRS-80
104 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
YOU'RE THE
BOSS
Thanks
to
your disk filing
system,
you are able to
command the Computer
to do
a lot
of
very
helpful
things. For example, you can rename
a
file.
If
you've taken your formatted disk
out,
re-insert
it.
Note: Can't
remember
if
your disk's formatted?
Check the
directory
by typing DIB
(EBBS)
(or DIBB or
DIRi
if
you
have more than
one
drive).
Type this to put a file on your disk:
10 PRINT "THIS IS A
FILE"
(ENTER)
SAVE
"ORIGINAL/NAM"
(ENTER)
Check the
directory
to see that the program file is
stored on your disk under the
name ''ORIGINAL/
NAM" . . . Now rename it.
Type:
RENAME "ORIGINAL/NAM" TO "NEW/NAM"
(ENTER)
Hear the disk drive working?
Check your DIRec-
tory again. If you'd like, LOAD
and LIST
"NEW/
NAM." The program file
has
simply been renamed.
Everything
else is
the same.
RENAME is easy to use, but there
is one
thing
you
need to remember. Save a file without
an exten-
sion
and then try to rename it.
Type:
13 PRINT "FILE
IE
"AFILE" (E
JAME "AFILE"
NUME
SER
TWO
BFILE"
'
(ENTER)
Sfli
NTER)
TO
'
rei*
(ENTER)
The
Computer gives
you an NE error. This
means
the
Computer can't find the file.
When
you
RENAME
a file, you must type in the
complete name
of
the file
so that the Computer can
find it. This includes the
name
and the extension.
As we discussed in
Chapter
2,
whenever
you SAVE
a
file
the Computer will make
sure
it
has an exten-
sion. If you don't assign it
one, the Computer will.
You
can
check
the directory to find out the
exten-
sion
of "AFILE." Then RENAME it. Type:
RENAME "AFILE/BAS"
TO
"BFILE/BAS" (ENTER)
If
you're renaming a program file, be sure that
your new
filename
has an extension. In other
19

Related product manuals