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

Windows 8 桌面捷徑小箭頭一鍵移除批次檔教學(含還原指令)

編輯:Windows 8 系統介紹

前言

從 Windows XP 時代起,許多使用者就不喜歡桌面捷徑左下角的小箭頭。在 Windows 8 上,我們可以用一個簡單的批次檔快速移除或還原它,無需安裝任何第三方優化軟體。

移除小箭頭步驟

  1. 桌面右鍵 → 新增 → 文字文件。
  2. 貼上下列程式碼,另存為 remove_arrow.bat(存檔類型選「所有檔案」)。
  3. 右鍵點選該檔案,選擇「以系統管理員身分執行」。
  4. 電腦重新開機後,所有捷徑的小箭頭即會消失。
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer

還原小箭頭步驟

若想恢復預設箭頭,同樣建立批次檔(如 restore_arrow.bat),內容如下:

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer

同樣以系統管理員身分執行並重開機即可。

原理與注意事項

  • 修改登錄機碼 HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons 的值 29,指向一個透明圖示資源(imageres.dll,197)。
  • 接著重啟檔案總管並刪除使用者圖示快取 iconcache.db,強制系統重讀設定。
  • 必須以系統管理員權限執行,否則寫入 HKLM 會失敗。
  • 此法同樣適用於 Windows 8.1。
Copyright © Windows教程網 All Rights Reserved