Download Print this page

Radio Shack TRS-80 Owner's Manual page 45

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

Advertisement

M
ATTRIB PAYROLL
(I
»ACC=PAYDAY »UPD=AMOCADO »PROT=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=UALLEY »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
(BBEM)
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
Aijio
com
ma
nd*
ling
sommsm-llm
gives
trsbos
a
mmm&m
m
Vm
name
of
an esesutable
program
tile
orealac!
sy
build.
n
csmmand-iine
is
given, ths
mmmnm
ml
m
sxeouted
m
reset/
if
command-line
is
oml'isti,
the
prswioys auto
mmmmi
Is
srsssd
from
the diskette.
29

Advertisement

loading

This manual is also suitable for:

Model iii