Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 38

Disk operating system
Hide thumbs Also See for TRS-80 Model II:

Advertisement

Library Commands
Sample Uses
Suppose you have a data file,
PAYROLL,
and you want an employee to use the
file in preparing paychecks. You want the employee to be able to read the file
but not to change it. Then use a command like:
ATTRIB PAYROLL ACC=PAYDAY, UPD=Avocado, PROT=READ
Now tell the clerk to use the password
PA YDAY
(which allows read and execute
privileges only); while only you know the password, Avocado, which grants total
access to the file.
Suppose you want to temporarily stop access to the file. Then use the
command:
ATTRIB PAYROLL. Avocado PROT=NONE
Now the use of the password
PAYDAY
grants no access to the file. To restore
the previous degree of access, use the command:
ATTRIB PAYROLL. Avocado PROT=READ
Note: The
EXEC
protection level should be used to protect machine-language
programs (' 'P" attribute in the
DIR
listing). Do not use this protection level for
BASIC
program files, or the
BASIC
interpreter will not be able to load and run them.
BASIC
programs must have a protection level of
P EAD
or higher.
71

Advertisement

loading