In the DOS mode, there is an external command attrib.exe, which changes the command of the file attribute in command, which can change the properties of a single file or a set of files, its parameter is: Attrib file name [- / R] [ - / H] [- / S] [- / A]. For example: Attrib C: /pp/test.txt r sets the property of the C: /PP/Test.txt file to read-only properties, which can only read the file, and cannot write or delete the operation. Attrib C: /pp/test.txt s Sets the properties of the C: /PP/test.txt file to system properties
Four properties: r read-only h hidden S system A document