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 a file can be changed by the right-click property. System properties are not even available.

Operation steps:

1. Right click on the folder and click on “Properties” to display the following interface:

will be "read only (applies only) The file (R) in the folder " check box is selected, this function only adds read-only attribute to the file under this folder, not this folder is 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 do I set the read-only or system properties of a folder using commands? First, let's take a look at the description of windows for the attrib command:

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.

1. Use the Win+R key combination to open the run, enter the “cmd” command, and press Enter.

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 I see that the folder has no attributes.

3. Enter “attrib +r +s 123”, press 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 the 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