Set read-only attribute from command line

by admin on May 3, 2009

We can mark a file as read-only from command line too. Command for this is given below.

attrib +R  filename

Example:

attrib +R file.doc

The above command will set the read only attribute forthe file file.doc and user will not  be able to do modifications to the file.

{ 2 comments… read them below or add one }

rpgivpgmr October 5, 2012 at 8:48 pm

Nice. Thanks.

Reply

rpgivpgmr October 5, 2012 at 8:48 pm

Forgot to mention. This is a good alternative to dowloading those free utilities to get read only files onto the Pocket PC.

Reply

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: