Sets or resets file attributes on one or more files To set a file read-only, use the command ATTRIB +R MYFILE TXT To set a file read-write, change the +R to -R One important application of ATTRIB is to set/clear the archive attribute Example $P ATTRIB +A * NEW
(External) ATTRIB [d: ][path]filename [/S] ATTRIB [+R|-R] [+A|-A] [+S|-S] [+H|-H] [d: ][path]filename [/S] Sets or displays the read-only, archive, system, and hidden attributes of a file or directory