home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG077.ARC
/
SETATT.DOC
< prev
next >
Wrap
Text File
|
1979-12-31
|
3KB
|
84 lines
SETATT.DOC
For CP/M 80
Despite what it says in the assembler file, this is a short doc file on SETATT.
Purpose of the program is:
To provide a quick means (ie an alternative to 'STAT') to change attributes on
files . -- ie, to allow changes from R/O to R/W, R/W to R/O, DIR to SYS and
SYS to DIR etc by allowing for multiple-file access via ambiguous filenames
but with the additional facility to select or reject specific files under a
query system (a la XERA, ERAQ etc, but simply setting or resetting the relevant
file attributes).
SETATT was originally published in 'Microcomputing' by Ian Ashdown, (vol VIII,
no 5, May, 1984.
COPYRIGHT IN THE PROGRAM RESIDES IN:
Ian Ashdown,
byHeart Software,
2 - 2016 West 1st Avenue,
Vancouver,B.C. V6J 1G8
Canada
AND IT HAS BEEN RELEASED INTO THE PUBLIC DOMAIN FOR NON-COMMERCIAL USE.
This version, arbitrarily called version 1.1, contains modifications by Peter
Martin to allow access to the 'archive' bit (ie, bit 7 of the 3rd filetyp
character).
Arbitrarily, and without knowledge of convention to the contrary -- the ARCHIVE
bit is referred to as such, and its states are referred to as 'ARC' for
'ARCHIVED' (ie, the bit is set) and 'NRC' for 'NON-ARCHIVED'.
Some modifications beyond expansion of use were made to the code in
version 1.1 also.
USAGE is:
SETATT <afn.typ> (specifier)
where filenames/types can be ambiguous, and (specifier) must be present, and be
one (and not more than one ) of six possibilities:
R/W for setting all found and matching files to READ/WRITE
R/O " " " " " " " " READ-ONLY
DIR " " " " " " " " DIRECTORY
SYS " " " " " " " " SYSTEM
NRC " " " " " " " " NON-ARCHIVED
ARC " " " " " " " " ARCHIVED
Files are checked when found to see what attribute settings they have, and
these are displayed in all cases (cf version 1.0 ). If none are found requiring
the change sought, the program exits with a message to that effect.
As each file matching the search pattern is found, the state of attributes is
shown on the screen, and where a change is required, an option is given on the
console to either have the particular file changed to the status nominated, or
skipped.
Files requiring no changes (ie, which match the desired attribute status) are
flagged as already set to the required status.
A closing option permits an exit with NO CHANGE of attributes on any files, ie,
the program double-checks with the user at the end, and aborts with NO changes
if the request for changes is not confirmed.
May be of use when you are also using BU from BU.C which is by the same author.
Peter Martin
16/14 Royston Street,
KINGS CROSS 2011
Sydney , N.S.W.,
Australia
(02) 331-3549
11 June 1985
/* end of setatt.doc */