Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.
Câu hỏi
Trình đọc siêu người dùng Rogue muốn biết cách hiển thị hoặc ẩn các tệp ẩn của Windows thông qua chuyển đổi dòng lệnh:
I often need to toggle between showing and hiding the hidden files on my Windows system. I have been doing it the usual way:
- Click Organize in an Explorer Window
- Select Folder and Search Options
- Switch to the View Tab
- Toggle between Show/Hide Hidden Files
This method is lengthy and I am tired of it. I would like the ability to toggle between showing and hiding them using the Command Line (CMD). Is there a way to set this up for regular files as well as system files?
Làm thế nào để bạn hiển thị hoặc ẩn các tập tin ẩn Windows thông qua một chuyển đổi dòng lệnh?
Câu trả lời
Người đóng góp SuperUser Steven có câu trả lời cho chúng tôi:
Hidden Files, Folders, or Drives
Add (or overwrite /f) the value Hidden to the registry key:
HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
Show
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v Hidden /t REG_DWORD /d 1 /f
Do not Show
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v Hidden /t REG_DWORD /d 2 /f
ToggleHiddenFiles.bat
Hide Protected Operating System Files (Recommended)
Checked
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v ShowSuperHidden /t REG_DWORD /d 0 /f
Unchecked
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v ShowSuperHidden /t REG_DWORD /d 1 /f
ToggleSystemFiles.bat
Notes
The changes take place immediately. The program reg requires admin privileges, so the batch files must be run as administrator.
Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.