mattrib - mtools utility to change DOS file attribute options
mattrib [-a|+a] [-h|+h] [-r|+r] [-s|+s] msdosfile [msdosfiles...]
command sets (+) or
clears (-) the attribute options of a DOS file.
Sets or resets the archive bit. Some backup programs use
this option to indicate a new file.
Sets or resets the hidden-bit. This option hides files from
command. To view these files, use the
Sets or resets the read-only bit. This option is used to
indicate a read-only file. If this bit is set, a file cannot be removed using
command. To remove the file, use the
Sets or resets the system bit. This option is used by DOS
to indicate an operating system file.
The mattrib command sets the attribute options of a DOS file using the plus (+) operator, or clears attribute options using the minus (-) operator. DOS pathnames that contain the '/' or '\' separator are supported. If you use the '\' separator or wildcards, you must enclose file names in quotes to protect them from the shell.
command can be used to establish the device
and the current working directory (relative to DOS), otherwise the default
The DOS version of the
command does not support
all of the options listed on this reference page.
The following exit values are returned:
The following environment variables affect the execution of
If set, this variable names the file that contains the name
of the current
working directory as established
command. If this variable is not set, the file
Contains the name of the current
working directory as established by the
this file does not exist, the default
Commands: mcd(1), mdel(1), mdir(1), mtools(1)