我真的很想了解发生了什么
attrib文件的输出是什么?
它是 S H:\pen drive\Documents
您的 Document
文件夹有 System
attribute(该文件是系统文件,不应由用户操纵。)
dir
默认情况下,不会显示具有系统或隐藏属性的文件或目录。
dir /a
将会呈现 所有 文件。
要删除 System
您文件夹中的属性运行以下命令:
attrib -S Documents
例:
> attrib +S Documents
> dir
Volume in drive F is Expansion
Volume Serial Number is 3656-BB63
Directory of F:\test\test
02/04/2017 22:41 <DIR> .
02/04/2017 22:41 <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 1,696,394,248,192 bytes free
> dir /a
Volume in drive F is Expansion
Volume Serial Number is 3656-BB63
Directory of F:\test\test
02/04/2017 22:41 <DIR> .
02/04/2017 22:41 <DIR> ..
02/04/2017 22:41 <DIR> Documents
0 File(s) 0 bytes
3 Dir(s) 1,696,394,248,192 bytes free
> attrib -S Documents
> dir
Volume in drive F is Expansion
Volume Serial Number is 3656-BB63
Directory of F:\test\test
02/04/2017 22:41 <DIR> .
02/04/2017 22:41 <DIR> ..
02/04/2017 22:41 <DIR> Documents
0 File(s) 0 bytes
3 Dir(s) 1,696,394,248,192 bytes free
进一步阅读
attrib Documents
?