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

Win8 移除捷徑小箭頭:用 .bat 腳本一鍵隱藏/恢復

編輯:Win8 系統應用技巧

捷徑小箭頭移除前後對比

隱藏捷徑小箭頭

  1. 桌面右鍵 → 新增 → 文字文件,命名為 remove_arrow.bat。
  2. 用記事本開啟,貼入以下內容並儲存:
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
  1. 右鍵該 .bat 檔 → 「以系統管理員身分執行」。
  2. 重新開機或登出登入,捷徑小箭頭即消失。

恢復捷徑小箭頭

同樣建立 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

以系統管理員身分執行後重開機即可恢復。

原理說明

利用登錄檔 Shell Icons 的值 29 指向一個透明圖示 (imageres.dll,197),並重建圖示快取達到隱藏效果;刪除該登錄值則恢復預設。

Copyright © Windows教程網 All Rights Reserved