把文件或文件夹设置为受保护的操作系统文件或文件夹

// 设置为受保护的操作系统文件,并隐藏
attrib d:\n.txt +s +h

// 取消设置为受保护的操作系统文件,并取消隐藏
attrib d:\n.txt -s -h

 

posted @ 2018-03-09 12:39  0611163  阅读(901)  评论(0编辑  收藏  举报