Change the attributes of a file.
In the FAT file system, there are 4 attributes which can be set:
You can not combine adding and removing of attributes in a single command. i.e. you must only add or only remove attributes per command.
A +|- attribute path
attributeis one or more of “R”, “H”, “S”, or “A”.
pathis the absolute path to a file/directory. A properly formatted path must begin with a ”
/” (forward slash) and begins at the root directory. Subdirectories are separated with ”
/” (forward slash).
NULL | Enn
To set “read-only” attribute for a file:
A +R /filename.txt
To remove “hidden” and “system” attributes for a file:
A -HS /filename.txt