attrib - system command
Syntax
attrib [+R|-R] [+H|-H] [<drive>:][<path>]<file name> [/D]
Meaning
Assign an attribute to one or more files. You can use wildcards (*). This function can only be used in ADAPL as the parameter in a SYSTEM command.
+ sets an attribute.
- removes an attribute.
R is the Read-only attribute.
H is the Hidden attribute.
/D also processes directories.
Parameters between [ and ] are optional, and parameters between < and > must be replaced by an actual value. Do not include any of these brackets in your command.
Example
stat = SYSTEM('attrib +R overdue.txt')