NanoTech-kw · Tech Guide Library

ATTRIB CMD (Attribute (file attributes))

Windows · CMD

Set or clear the read-only, hidden, system, and archive attributes. Syntax: attrib [file] [+r] [-h] [+s]

Step-by-step

  1. Open Command Prompt (press Win+R, type cmd, and press Enter)
  2. Syntax: attrib [file] [+r] [-h] [+s]
  3. Brief: Set or clear the read-only, hidden, system, and archive attributes.
  4. Example: attrib -h -s secret.txt
  5. Tip: Clear hidden+system together, as some files use both attributes.

Reference: learn.microsoft.com

Open in the NanoTech-kw library →