1CPMCHATTR(1)                     User commands                    CPMCHATTR(1)
2
3
4

NAME

6       cpmchattr - change file attributes on CP/M files
7

SYNOPSIS

9       cpmchattr [-f format] image attrib file-pattern ...
10

DESCRIPTION

12       Cpmchattr changes the file attributes for files on CP/M disks.
13

OPTIONS

15       -f format
16              Use the given CP/M disk format instead of the default format.
17
18       -T libdsk-type
19              libdsk driver type, e.g. tele for Teledisk images or raw for raw
20              images (requires building cpmtools with support for libdsk).
21
22       attrib Set the file attributes as given.
23

FILE ATTRIBUTES

25       The file attribute string can contain  the  characters  1,2,3,4,r,s,a,n
26       and m.  The meanings of these are:
27
28       1-4    The  CP/M  "user  attributes"  F1-F4.   CP/M does not assign any
29              meaning to these attributes, though MP/M does.
30
31       r      The file is read-only.  This is the same as using cpmchmod(1) to
32              revoke write permissions.
33
34       s      The  file  is  a system file.  This attribute can also be set by
35              cpmchmod(1).
36
37       a      The file has been backed up.
38
39       n      Reset all attributes to zero.  So the string  "n1r"  resets  all
40              attributes and then sets F1 and Read-Only.
41
42       m      Attributes  after  an  m  are unset rather than set.  The string
43              "12m34" sets atttributes F1 and F2, and unsets F3 and F4.
44

RETURN VALUE

46       Upon successful completion, exit code 0 is returned.
47

ERRORS

49       Any errors are indicated by exit code 1.
50

ENVIRONMENT

52       CPMTOOLSFMT    Default format
53

FILES

55       /usr/share/cpmtools/diskdefs  CP/M disk format definitions
56

AUTHORS

58       This program is copyright 1997–2012 Michael  Haardt  <michael@moria.de>
59       and copyright 2000, 2001, 2011 John Elliott <jce@seasip.demon.co.uk>.
60
61       This program is free software; you can redistribute it and/or modify it
62       under the terms of the GNU General Public License as published  by  the
63       Free  Software Foundation; either version 3 of the License, or (at your
64       option) any later version.
65
66       This program is distributed in the hope that it  will  be  useful,  but
67       WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of MER‐
68       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  General
69       Public License for more details.
70
71       You should have received a copy of the GNU General Public License along
72       with this program.  If not, write  to  the  Free  Software  Foundation,
73       Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
74

SEE ALSO

76       cpmls(1), cpmchmod(1), cpm(5)
77
78
79
80CP/M tools                     October 25, 2014                   CPMCHATTR(1)
Impressum