A SERVICE OF

logo

6-12 ROM-DOS Commands
MX2 Reference Guide Revision A MX2A137REFGD
ATTRIB.EXE
Type
External
Purpose
The ATTRIB command either displays or modifies the attribute of a file.
Syntax
ATTRIB [+ ¦ -][option][filespec]
Remarks
The file attributes define the characteristics of a file. They determine if a
file may be deleted or modified, or if it is archived. The ATTRIB
command is used to manage these file attributes.
Wildcard characters may be used in the ATTRIB filespec.
The ATTRIB command will modify file attributes if modify commands
are given to ATTRIB. The modify commands are:
Command Description
+/- Add(+) or remove(-) attribute
A Archive attribute
C Clear all attributes
H Hidden file attribute
R Read only attribute
S System file attribute
If no modify commands are found by ATTRIB, then the files are
displayed along with the file names and their current attributes.
Examples
ATTRIB will add the read-only attribute to the file myfile.dat.
ATTRIB +r myfile.dat