1 .TH CPMCHATTR 1 "@UPDATED@" "CP/M tools" "User commands"
2 .SH NAME \"{{{roff}}}\"{{{
3 cpmchattr \- change file attributes on CP/M files
18 \fBCpmchattr\fP changes the file attributes for files on CP/M disks.
21 .IP "\fB\-f\fP \fIformat\fP"
22 Use the given CP/M disk \fIformat\fP instead of the default format.
23 .IP "\fB\-T\fP \fIlibdsk-type\fP"
24 libdsk driver type, e.g. \fBtele\fP for Teledisk images or \fBraw\fP for raw images
25 (requires building cpmtools with support for libdsk).
27 Show all CP/M file names in upper case.
29 Set the file attributes as given.
31 .SH "FILE ATTRIBUTES" \"{{{
32 The file attribute string can contain the characters
33 1,2,3,4,r,s,a,n and m.
34 The meanings of these are:
37 The CP/M "user attributes" F1-F4. CP/M does not assign any
38 meaning to these attributes, though MP/M does.
41 The file is read-only. This is the same as using
43 to revoke write permissions.
46 The file is a system file. This attribute can also be set by
50 The file has been backed up.
53 Reset all attributes to zero. So the string "n1r" resets all attributes and
54 then sets F1 and Read-Only.
57 Attributes after an m are unset rather than set. The string "12m34" sets
58 atttributes F1 and F2, and unsets F3 and F4.
60 .SH "RETURN VALUE" \"{{{
61 Upon successful completion, exit code 0 is returned.
64 Any errors are indicated by exit code 1.
67 CPMTOOLSFMT Default format
70 @DATADIR@/diskdefs CP/M disk format definitions
73 This program is copyright 1997\(en2021 Michael Haardt
74 <michael@moria.de> and copyright 2000, 2001, 2011 John Elliott
75 <jce@seasip.demon.co.uk>.
77 This program is free software; you can redistribute it and/or modify
78 it under the terms of the GNU General Public License as published by
79 the Free Software Foundation; either version 3 of the License, or
80 (at your option) any later version.
82 This program is distributed in the hope that it will be useful,
83 but WITHOUT ANY WARRANTY; without even the implied warranty of
84 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
85 GNU General Public License for more details.
87 You should have received a copy of the GNU General Public License along
88 with this program. If not, write to the Free Software Foundation, Inc.,
89 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.