Tôi thực sự muốn hiểu những gì đang xảy ra
Đầu ra của tài liệu attrib là gì?
Nó là S H:\pen drive\Documents
DocumentThư mục của bạn có Systemthuộc tính (Tệp là tệp hệ thống và người dùng không nên thao tác.)
dir theo mặc định sẽ không hiển thị các tập tin hoặc thư mục với các thuộc tính hệ thống hoặc ẩn.
dir /asẽ hiển thị tất cả các tập tin.
Để xóa Systemthuộc tính khỏi thư mục của bạn, hãy chạy lệnh sau:
attrib -S Documents
Thí dụ:
> 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
Đọc thêm
attrib Documentsgì?