ATTRIB CMD (Attribute (file attributes))
Set or clear the read-only, hidden, system, and archive attributes. Syntax: attrib [file] [+r] [-h] [+s]
Step-by-step
- Open Command Prompt (press Win+R, type cmd, and press Enter)
- Syntax: attrib [file] [+r] [-h] [+s]
- Brief: Set or clear the read-only, hidden, system, and archive attributes.
- Example: attrib -h -s secret.txt
- Tip: Clear hidden+system together, as some files use both attributes.
Reference: learn.microsoft.com