How does Win8 set files to read-only system properties?

  
Normally, only the read-only attribute of the file can be changed by the right-click attribute. The system attribute has no corresponding option (as shown in the figure):

Operating steps:
1. Right click on the folder, single Click the "Properties" setting to appear the following interface:
will be "read only (applies to files in the folder (R)) & "; check box selected, this function is only only files under this folder With the read-only attribute, this folder is not a read-only attribute.

If the folder to be set contains subfolders, you will be prompted as follows, select the red box as shown in the figure, and then click “OK”, after this operation, it will be literally The folder and its subfolders and files are all read-only, but the actual verification will only add read-only attributes to the files under the file.

2, if you want to set the normal folder plus the "read only" or "ldquo; system" attribute, you need to use the attrib command.
How to use the command to set the read-only or system properties of the folder? First, let's take a look at the description of the attrib command in Windows:
Display or set the file folder properties
The format and common parameters of the command are
ATTRIB [+R |  -R] [+A |  -A ] [+S |  -S] [+H |  -H] [[drive:] [path] filename] [/S [/D]]
+ Set the properties.
- Clear attributes.
R Read-only file attributes.
A Archive file properties.
S System file properties.
H Hide file attributes.
I No content index file attributes.
[drive:][path][filename]
Specify the file attributes to be processed.
/S Processes matching files in the current folder and its subfolders.
/D also handles folders.
/L Handles the properties of symbolic links and symbolic link targets.
The following is to set the H folder 123 folder as read-only and system properties as an example, explain how to use the attrib command.
Step 1: Use the Win+R key combination to open the run, enter the “cmd” command and press Enter.

Step 2: Enter “H:” in the command window, press Enter to the H drive, type “attrib 123”, and then click “Enter” to view the folder properties. Now You can see that the folder has no attributes.

Step 3: Enter “attrib +r +s 123”, enter, set the 123 folder to read-only and system properties.

Step 4: Enter "ldrib 123" and enter again. You can view the 123 folder and the current attribute is S, R. It can be seen that its current attribute is read-only and system attribute.

Note: After setting the system properties, we will find that when you right-click to view this folder property, the hidden property is gray:


Copyright © Windows knowledge All Rights Reserved