Rev | Author | # | Line |
---|---|---|---|
1 | perry | 1 | mattrib |
2 | !!!mattrib | ||
3 | Name | ||
4 | Note of warning | ||
5 | Description | ||
6 | See Also | ||
7 | Viewing the texi doc | ||
8 | ---- | ||
9 | !!Name | ||
10 | |||
11 | |||
12 | mattrib - change MSDOS file attribute flags | ||
13 | !!Note of warning | ||
14 | |||
15 | |||
16 | This manpage has been automatically generated from mtools's | ||
17 | texinfo documentation, and may not be entirely accurate or | ||
18 | complete. See the end of this man page for | ||
19 | details. | ||
20 | !!Description | ||
21 | |||
22 | |||
23 | Mattrib is used to change MS-DOS file attribute | ||
24 | flags. It has the following syntax: | ||
25 | |||
26 | |||
27 | mattrib [[-a|+a] [[-h|+h] | ||
28 | [[-r|+r] [[-s|+s] [[-/] | ||
29 | [[-p] [[-X] ''msdosfile'' [[ | ||
30 | ''msdosfiles'' ... ] | ||
31 | |||
32 | |||
33 | Mattrib adds attribute flags to an MS-DOS file | ||
34 | (with the `+' operator) or remove attribute flags | ||
35 | (with the `-' operator). | ||
36 | |||
37 | |||
38 | Mattrib supports the following attribute | ||
39 | bits: | ||
40 | |||
41 | |||
42 | a | ||
43 | |||
44 | |||
45 | Archive bit. Used by some backup programs to indicate a new | ||
46 | file. | ||
47 | |||
48 | |||
49 | r | ||
50 | |||
51 | |||
52 | Read-only bit. Used to indicate a read-only file. Files with | ||
53 | this bit set cannot be erased by DEL nor | ||
54 | modified. | ||
55 | |||
56 | |||
57 | s | ||
58 | |||
59 | |||
60 | System bit. Used by MS-DOS to indicate a operating system | ||
61 | file. | ||
62 | |||
63 | |||
64 | h | ||
65 | |||
66 | |||
67 | Hidden bit. Used to make files hidden from | ||
68 | DIR. | ||
69 | |||
70 | |||
71 | Mattrib supports the following command line | ||
72 | flags: | ||
73 | |||
74 | |||
75 | / | ||
76 | |||
77 | |||
78 | Recursive. Recursively list the attributes of the files in | ||
79 | the subdirectories. | ||
80 | |||
81 | |||
82 | X | ||
83 | |||
84 | |||
85 | Concise. Prints the attributes whithout any whitespace | ||
86 | padding. If neither the | ||
87 | msdosfile'' contains a wildcard, and there is only | ||
88 | one Msdos file parameter on the command line, only the | ||
89 | attribute is printed, and not the filename. This option is | ||
90 | convenient for scripts | ||
91 | |||
92 | |||
93 | p | ||
94 | |||
95 | |||
96 | Replay mode. Outputs a series of mformat commands that will | ||
97 | reproduce the current situation, starting from a situation | ||
98 | as left by untarring the Dos filesystem. Commands are only | ||
99 | output for attribute settings that differ from the default | ||
100 | (archive bit set for files, unset for directories). This | ||
101 | option is intended to be used in addition to tar. The | ||
102 | readonly attribute is not taken into account, as | ||
103 | tar can set that one itself. | ||
104 | !!See Also | ||
105 | |||
106 | |||
107 | Mtools' texinfo doc | ||
108 | !!Viewing the texi doc | ||
109 | |||
110 | |||
111 | This manpage has been automatically generated from mtools's | ||
112 | texinfo documentation. However, this process is only | ||
113 | approximative, and some items, such as crossreferences, | ||
114 | footnotes and indices are lost in this translation process. | ||
115 | Indeed, these items have no appropriate representation in | ||
116 | the manpage format. Moreover, not all information has been | ||
117 | translated into the manpage version. Thus I strongly advise | ||
118 | you to use the original texinfo doc. See the end of this | ||
119 | manpage for instructions how to view the texinfo | ||
120 | doc. | ||
121 | |||
122 | |||
123 | * | ||
124 | |||
125 | |||
126 | To generate a printable copy from the texinfo doc, run the | ||
127 | following commands: | ||
128 | |||
129 | |||
130 | __ ./configure; make dvi; dvips mtools.dvi | ||
131 | __ | ||
132 | |||
133 | |||
134 | * | ||
135 | |||
136 | |||
137 | To generate a html copy, run: | ||
138 | |||
139 | |||
140 | __ ./configure; make html | ||
141 | __A premade html can be found at: `http://mtools.linux.lu' and also at: `http://www.tux.org/pub/knaff/mtools' | ||
142 | |||
143 | |||
144 | * | ||
145 | |||
146 | |||
147 | To generate an info copy (browsable using emacs' info mode), | ||
148 | run: | ||
149 | |||
150 | |||
151 | __ ./configure; make info | ||
152 | __ | ||
153 | |||
154 | |||
155 | The texinfo doc looks most pretty when printed or as html. | ||
156 | Indeed, in the info version certain examples are difficult | ||
157 | to read due to the quoting conventions used in | ||
158 | info. | ||
159 | ---- |