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

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: