Date : Fri, 22 Jun 1984 08:21:40 EDT
From : Rick Conn <rconn@Brl-Mis.ARPA>
Subject: Re: CP/M gang attribute setter needed
The PROTECT program of the ZCPR2 and ZCPR3 systems may be of interest.
It has the following syntax:
PROTECT list-of-files options
and the options are quite handy in two nice ways specifically:
PROTECT list-of-files I<attributes>
will set the indicated attributes on the list of files with inspection.
The user is given each file name in the list which matches the list spec
and is asked to approve the setting of the attributes. Another option:
PROTECT list-of-files C
goes thru each file in the list and allows the user to manually specify
the attributes for each file.
Examples:
PROTECT B7:*.TXT,ROOT:*.*,WORKDIR:MYWORK.ASM R1I
-- sets all *.TXT files in B7, all *.* files in ROOT:, and MYWORK.ASM in
WORKDIR: to Read/Only and attribute 1 with inspection; each file matching
each reference in the list is named, and the user is asked if he wants
to set it
PROTECT ROOT:*.COM,BASE:*.COM C
-- names all *.COM files in ROOT: and BASE: and allows the user to input
the new attributes for each file named on a case-by-case basis
In all cases with PROTECT, all 11 attribute bits (A, R, S, and 1-8)
can be referenced.
Finally, to illustrate one of the big advantages of ZCPR3, PROTECT.COM
is only 4K in size! One note: PROTECT.COM for ZCPR3 will ONLY RUN under
ZCPR3.
Rick