OPTION ONE
Through a Folder Properties Page1. Right click on a folder that you want to make the files inside of it read-only, and click on Properties.
NOTE: The read-only box will always default back to being filled in with blue. A undetermined state of not being read-only. This is not read-only.
2. Click the General tab. (See screenshot below)3. To Set Files in Folder as Read-only -A) Check the Read-only box and click OK. (See screenshot below)4. To Unset Files in the Folder as Read-only -
NOTE: This will only set the read-only attribute for all of the files in this folder and it's subfolders. It does not affect the folder itself. See: Microsoft Help and Support: KB326549B) Click on OK to confirm changes. (See screenshot below)
NOTE: If the folder is a system folder, then you may need to use METHOD TWO below to remove the read-only attribute of the files in the folder instead.A) Click on the Read-only box until it is blank without the blue square. (See screenshot below)
NOTE: This will unset the read-only attribute for all of the files in this folder and it's subfolders. It does not affect the folder itself.B) Click on OK. (See screenshot above)
C) Click on OK to confirm changes. (See screenshot below)
NOTE: If this is a system folder, then you will have to approve the other pop-ups as well.OPTION TWO
Through a File Properties Page1. Right click on the file you want to make read-only, and click on Properties.
2. Click on the General tab. (See screenshots below)
3. To Set a File as Read-only -A) Check the Read-only box. (See right screenshot below step 4)4. To Unset a File as Read-only -
B) Go to step 5.
NOTE: If this was a system file, then you may need to use METHOD TWO below to remove the read-only attribute instead.A) Uncheck the Read-only box. (See left screenshot below)
NOTE: To unset read-only for all files in a folder, see step 4 in the above section.5. Click on OK to apply. (See screenshots above)
NOTE: If this is a system file, then you will have to approve the other pop-ups as well.
METHOD TWO
Through a Command Prompt with the ATTRIB Command
OPTION ONE
For a File
NOTE: This options is if you want to set or unset a file as read-only.1. Open a elevated command prompt.
2. To Set a File as Read-only -A) In the command prompt, type attrib +r "Full path of file" and press Enter. (See screenshot below)3. To Unset a File as Read-only -
NOTE: Substitute "Full path of file" for the actual full path of the file.
For example, attrib +r "C:\Users\Moderator\Desktop\Test.txt"
B) Go to step 4.A) In the command prompt, type attrib -r "Full path of file" and press Enter. (See screenshot below)4. Close the elevated command prompt.
NOTE: Substitute "Full path of file" for the actual full path of the file.
For example, attrib -r "C:\Users\Moderator\Desktop\Test.txt"
5. You can verify the read-only status of the file using METHOD ONE (Option Two) above.OPTION TWO
For a Folder
NOTE: This option is if you want to set or unset all files in a folder as read-only.1. Open a elevated command prompt.
2. To Set All Files in a Folder as Read-only -A) In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute Full path of folder for the actual full path of the folder.FOR EXAMPLE: I would type this command exactly as below for a folder on my desktop.Code:attrib +r "Full path of folder\*.*" /S /DCode:attrib +r "C:\Users\UserName\Desktop\Folder\*.*" /S /DAttachment 541223. To Unset All Files in Folder as Read-only -A) In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute Full path of folder for the actual full path of the folder.FOR EXAMPLE: I would type this command exactly as below for a folder on my desktop.Code:attrib -r "Full path of folder\*.*" /S /DCode:attrib -r "C:\Users\UserName\Desktop\Folder\*.*" /S /D
No comments:
Post a Comment