How Win8 changes the read-only or system properties of a folder

  
Win8 changes the read-only or system properties of a folder as follows:
Normally, only the read-only property of the file can be changed by the right-click property, and the system property has the corresponding option. nothing.




1. Right click on the folder and click on “Properties” to display the following interface:
will be "read only (applies only to files in the folder ( The R))" checkbox is selected. This function only adds read-only attributes to files in this folder. 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 instruction 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.
1. Use the Win+R key combination to open the run, enter the “cmd” command, and press Enter.

2. Enter " H:” in the command window, press Enter to the H drive, enter "ldrib 123", and then click "Enter" to view the folder properties. Now you can I see that the folder has no attributes.

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

4. Enter "“attrib 123", and press Enter to view the 123 folder. 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, you will find that when you right-click to view this folder property, the hidden property is gray.


Copyright © Windows knowledge All Rights Reserved