Basic DOS commands---3. Modify folder and file attributes

1. Hidden folders

attrib +h 文件夹名
如:attrib +h xuanxuan

Do not show files with hidden attributes:

Select "Tools-Folder Options" in the folder menu bar, then click to enter the dialog box

At this time, all folders whose attributes are hidden are not displayed.

Show folder

attrib -h 文件夹名
如:attrib -h xuanxuan

 

3. Promote the folder to a protected system-level folder

attrib +s 文件夹名
如:attrib +s xuanxuan

same

attrib -s 文件夹名 可以将受保护的系统级别的文件夹改为普通文件夹
如:attrib -s xuanxuan

4. Modify the folder as read-only attribute

attrib +a 文件夹  将文件夹修改为只读属性
如:attrib +a xiao

 

akin

attrib -a 文件夹名 可以将只读文件夹改为普通文件夹
如:attrib -a xiao

 

All the above content is explained by taking the folder as an example. If you change the folder name to the corresponding file name, you can also perform the same operation on the file. 

Guess you like

Origin blog.csdn.net/Justinhhhh/article/details/112532500