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

Win10 自訂磁碟分割區圖示:autorun.inf + .ico 打造專屬盤符視覺識別

編輯:Windows 10 系統介紹

Win10 繼承經典 autorun.inf 機制,透過放置 .ico 圖示檔並建立設定檔,可為每個磁碟分割區設定獨特圖示,方便視覺辨識系統盤、資料盤、備份盤等用途。

自訂磁碟圖示效果
多磁碟不同圖示

操作步驟

  1. 準備 .ico 圖示檔 (建議 256x256, 32bit),命名為 a.ico 放入目標磁碟**根目錄**。

放置 ico 檔案

  1. 磁碟根目錄空白處右鍵 → 「新增」→「文字文件」。
  2. 貼入以下內容:
[autorun]
icon=a.ico
  1. 「另存新檔」→ 檔案類型選「所有檔案」→ 檔名 autorun.inf → 儲存。

autorun.inf 內容

  1. 按 F5 重新整理或重開機 → 檔案總管即顯示新圖示。

注意事項

  • C: 盤無法直接在根目錄新建檔案,需在桌面建立完成後複製過去 (需管理員權限)。
  • 建議將 autorun.inf 設為「隱藏」屬性,避免誤刪。
  • **安全性**:病毒常竄改 autorun.inf 傳播,建議**不加入**殺毒白名單,定期檢查內容是否被竄改。
  • 支援相對路徑:icon=folder\icon.ico 可將圖示放在子資料夾管理。

進階應用

autorun.inf 亦可設定:

  • label=自訂磁碟標籤 (取代磁碟機代號旁文字)
  • open=setup.exe (插入時自動執行,**極高風險,現代 Windows 預設已禁用**)
  • action=開啟資料夾 (右鍵選單預設動作文字)
Copyright © Windows教程網 All Rights Reserved