DelphiFAQ Home Search:

How can I mark a whole Windows folder with all subfolders as read-only?

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

How can I mark a whole Windows folder with all subfolders as read-only?

Answer:

You can either
  • select that folder in Windows Explorer
  • right-click on the folder
  • select 'properties'
  • check the 'Read Only' box

It will do it for all the subfolders unless you disabled applying inheritable attributes (this can be done or un-done with a click on 'Advanced')

You can also open a 'DOS box' (command line interpreter), go into the folder and use the attrib command as shown below:

cd \ReadonlyFolder
attrib +r *.* /s

Comments:

2012-11-12, 03:38:22
anonymous from United Kingdom  
2012-11-12, 03:39:37
coach001 from United Kingdom  

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: