Windows 7 任務欄「釘選」功能失效:右鍵程式/快捷方式無「釘選到任務欄」選項,或點擊無反應。經排查,根因在於註冊表 HKEY_CLASSES_ROOT\piffile 和 HKEY_CLASSES_ROOT\lnkfile 關鍵值損壞或缺失(常因優化工具/清理軟件誤刪)。本文提供完整註冊表修復文件,雙擊導入即可恢復。
piffile:MS-DOS 程式快捷方式關聯。lnkfile:標準快捷方式關聯。IsShortcut、shellex\ContextMenuHandlers、shellex\DropHandler 等子鍵值必須完整,Explorer 才能識別為可釘選物件。fix_piffile.reg,貼入以下內容並保存:Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\piffile]
@="Shortcut to MS-DOS Program"
"EditFlags"=hex:01,00,00,00
"IsShortcut"=""
"NeverShowExt"=""
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,61,00,63,00,70,00,70,00,61,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,36,00,30,00,30,00,35,00,00,00
[HKEY_CLASSES_ROOT\piffile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\piffile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]
@=""
[HKEY_CLASSES_ROOT\piffile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT\piffile\shellex\IconHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\piffile\shellex\PropertySheetHandlers\PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT\piffile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
fix_lnkfile.reg,貼入:Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"FriendlyTypeName"="@shell32.dll,-4153"
"IsShortcut"=""
"NeverShowExt"=""
[HKEY_CLASSES_ROOT\lnkfile\CLSID]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\Compatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\OpenContainingFolderMenu]
@="{37ea3a21-7493-4208-a011-7f9ea79ce9f5}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]
@=""
[HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
explorer.exe → 右鍵「結束進程」。explorer.exe 重啟殼程式。修復後快捷方式可能顯示「小箭頭」(預設有箭頭)。若需隱藏箭頭,另行導入:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=-
[HKEY_CLASSES_ROOT\piffile]
"IsShortcut"=-
(- 表示刪除該值,Explorer 便不顯示箭頭覆蓋層。)
註冊表修復是解決 Shell 介面異常的核心手段,掌握 piffile/lnkfile 關鍵結構,舉一反三可修復更多右鍵菜單/拖放/釘選問題。