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):

Operation steps:

1. Right click Click on the folder and click on the "Properties" setting to display the following interface:

Select the "Read only (applies to files in folder (R)) " check box, this function Just add a read-only attribute to the file under this folder, not this folder is a read-only attribute.

To set this folder to contain subfolders, you will get the following prompt, select the box as shown in the red box, 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]

Specifies 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.

Then let's set the H folder's 123 folder as read-only and system properties as an example to 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: In the command window, type ““H:”, press Enter to the H drive, enter “ldrib 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”, press Enter, set the 123 folder to read-only and system properties.

Step 4: Enter “attrib 123” again, 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, we will find that when you right-click to view this folder property, the hidden property is gray:

Copyright © Windows knowledge All Rights Reserved