DOS Command Attrib
Displays or changes file attributes
ATTRIB [+R | -R] [+A | -a] [+S | -S] [+H | -H] [[drive:][path]filename] [/S]
+ | Sets the attribute. |
- | Clears the attribute |
R | Read-only |
A | Archive |
S | System file |
H | Hidden file |
/S | Processes files in all directories in the specified path |
Examples
attrib +r file.txt - makes file.txt read only and cannot be edited.
attrib -r file.txt - makes file.txt edited.
attrib +h myfile.txt - makes the file hidden so a user will not see it.
attrib -h myfile.txt - makes the file unhidden and allows the user to see the file.
This page is from http://www.easydos.com. I pasted it on my website to avoid possible broken links. For further help with DOS commands, Check easydos.com out.