Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

attrib 指令打造真正隱藏資料夾:+s +a +h +r 四屬性疊加,總管顯示隱藏檔也看不見

編輯:Windows XP 系統介紹

指令語法

attrib +s +a +h +r 路徑\資料夾名
  • +s:系統檔案屬性
  • +a:封存屬性
  • +h:隱藏屬性
  • +r:唯讀屬性

四屬性疊加後,資料夾在總管中**完全消失**,即使勾選「顯示隱藏檔案和資料夾」、取消勾選「隱藏受保護的作業系統檔案」也**看不見**。

實戰範例:隱藏 E:\Ghost

  1. Win+R → cmd。
  2. 輸入:attrib +s +a +h +r E:\Ghost → Enter。
  3. 開啟 E: 盤,Ghost 資料夾消失。

如何存取隱藏資料夾?

  • 總管位址列直接輸入 E:\Ghost → Enter,直接進入 (前提:你記得完整路徑)。
  • 命令提示字元 cd E:\Ghost 同樣可進入。

取消隱藏 (恢復顯示)

attrib -s -a -h -r E:\Ghost

執行後重新整理總管,資料夾重現。

注意事項

  • 此法為**視覺隱藏**,非加密。資料安全請配合 EFS/BitLocker/VeraCrypt。
  • 系統檔案屬性 (+s) 為關鍵,單獨 +h 仍會被「顯示隱藏檔案」揭露。
  • 病毒/惡意軟體常用此手法隱藏自身,定期掃描系統隱藏屬性異常資料夾。
  • 適用於 NTFS/FAT32/exFAT 等 Windows 支援檔案系統。
Copyright © Windows教程網 All Rights Reserved