ATTRIB's Examples

Windows OS allows users to change the attributes of a file. The first step is to find the file and then find the property that needs to be changed. There is a simple command as well available in Windows which can be used to change the attributes of a file. It is – ATTRIB.

Syntax: Attrib [{+|-}r] [{+|-}a] [{+|-}s] [{+|-}h] [{+|-}i] [<drive>:][<path>][<filename>] [/s [/d] [/l]]

Example- C:\Users\Attrib /?