Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 36

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

TRSDOSL^d
ATTRIB PAYROLL
(I
*ACC
=
PAYDAY
t(JPD
=
AV0CAD0
tPROT
=
READ)
Now
tell
the clerk
to
use
the
password
payday
(which
allows read
only);
while
only
you
know
the
password,
avocado,
which
grants
total
access
to
the
file.
Protecting
BASIC
Programs
You
may
give
a
basic
program
execute-only
protection using the
attrib
command.
For example, suppose
the
program
is
named
test
(no password).
Under trsdos ready,
execute
this
command;
ATTRIB TEST
<
ACC=
»UPD
=
VALLEY
,PR0T
=
EXEC
Now
test
has
a
blank
access
password, an update password of valley, and an
access
level
of execute
only.
Without
using
the
update password,
there
is
now
only
one
way
to
execute
the
program:
1.
Start
basic.
2.
Type:
RUN "TEST"
(This
is
the
only
way
to
access
the
program.
If
the
operator attempts
to
load
it
instead,
basic
will
erase the
program from
memory
before returning with
ready.)
After the
run "test" command,
basic
will
load
and
execute
the
program.
If
the
operator presses
(BREAK)
or
if
the
program
ends
normally,
basic
will
erase the
program
before returning with
the
ready
message. This
makes
it
impossible
to
obtain
a
listing
of
the
program
unless
the
update
password
is
used.
Of
course,
if
you
use
the
update password,
you
may
gain
full
access
to
the
program.
AUTO
Automatic
Command
after
System
Start-up
command-line
gives
trsdos
a
command
01
name
of
an
executable
program
file
created by
build.
\i
command-line
\$
given, the
command
will
be executed on
reset/
power-up.
if
mmmand-lme
is
omitted, the previous
auto
command
is
erased
from
the
diskette.
29

Advertisement

loading