vicker313 tech blog

September 8, 2009

Change File Attribute in Command Prompt

Filed under: Windows — Tags: , , — vicker313 @ 8:00 am

To change file attributes in Windows using Command Prompt:

attrib [+|-][ahsr] filename

Where + means enable the attribute, means disable the attribute.

a: Archive
h: Hidden
s: System File
r: Read Only

Example:

attrib +sh filename means make the file a hidden system file

attrib -r filename means make the file not read only

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.