Windows 預設隱藏系統關鍵檔案 (如 pagefile.sys, hiberfil.sys, ProgramData, AppData) 以防誤刪。但排查問題、清理垃圾、修改設定檔時,往往需要看見它們。本文提供 **GUI、指令、登錄** 三種顯示隱藏檔案方法,並解釋「隱藏」與「系統隱藏」的差異。
control folders → Enter (直接開啟資料夾選項)。bootmgr, pagefile.sys, System Volume Information)。**操作完成後務必恢復勾選,防誤刪!**CMD (永久生效,修改登錄):
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t REG_DWORD /d 1 /f
taskkill /f /im explorer.exe & start explorer.exe
PowerShell (即時生效,僅當前工作階段):
# 顯示隱藏檔案
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -Value 1
# 顯示系統隱藏檔案
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowSuperHidden' -Value 1
# 重啟總管生效
Stop-Process -Name explorer -Force
| 層級 | 屬性標記 | 典型檔案 | 顯示設定 |
|---|---|---|---|
| 一般隱藏 | H (Hidden) | AppData, ProgramData, 使用者自行隱藏的檔案 | 「顯示隱藏的檔案、資料夾和磁碟機」 |
| 系統隱藏 | H + S (System) | pagefile.sys, hiberfil.sys, bootmgr, System Volume Information, desktop.ini | **取消勾選**「隱藏受保護的作業系統檔案」 |