mtools: mattrib
1
1 4.3 Mattrib
1 ===========
1
1 `Mattrib' is used to change MS-DOS file attribute flags. It has the
1 following syntax:
1
1 `mattrib' [`-a|+a'] [`-h|+h'] [`-r|+r'] [`-s|+s'] [`-/'] [`-p']
1 [`-X'] MSDOSFILE [ MSDOSFILES ... ]
1
1 `Mattrib' adds attribute flags to an MS-DOS file (with the ``+''
1 operator) or remove attribute flags (with the ``-'' operator).
1
1 `Mattrib' supports the following attribute bits:
1
1 `a'
1 Archive bit. Used by some backup programs to indicate a new file.
1
1 `r'
1 Read-only bit. Used to indicate a read-only file. Files with
1 this bit set cannot be erased by `DEL' nor modified.
1
1 `s'
1 System bit. Used by MS-DOS to indicate a operating system file.
1
1 `h'
1 Hidden bit. Used to make files hidden from `DIR'.
1
1 `Mattrib' supports the following command line flags:
1 `/'
1 Recursive. Recursively list the attributes of the files in the
1 subdirectories.
1
1 `X'
1 Concise. Prints the attributes without any whitespace padding. If
1 neither the "/" option is given, nor the MSDOSFILE contains a
1 wildcard, and there is only one MS-DOS file parameter on the
1 command line, only the attribute is printed, and not the filename.
1 This option is convenient for scripts
1
1 `p'
1 Replay mode. Outputs a series of mformat commands that will
1 reproduce the current situation, starting from a situation as left
1 by untarring the MS-DOS file system. Commands are only output for
1 attribute settings that differ from the default (archive bit set
1 for files, unset for directories). This option is intended to be
1 used in addition to tar. The `readonly' attribute is not taken
1 into account, as tar can set that one itself.
1