Windows 7 工作列「釘選此程式到工作列」選項消失、無反應,通常是 lnkfile、piffile 檔案關聯註冊表鍵值損毀。本文提供兩組註冊表修復檔,匯入後重啟 Explorer 即可恢復釘選功能。
lnkfile(捷徑)、piffile(MS-DOS 程式捷徑)的 IsShortcut 字串值若遺失/錯誤,Shell 就無法識別為可釘選物件。修復這兩個檔案類型的註冊表定義即可恢復功能。
.reg 檔案(以記事本儲存為 ANSI 編碼):fix_piffile.regWindows 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]
[HKEY_CLASSES_ROOT\piffile\shell\open]
[HKEY_CLASSES_ROOT\piffile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\piffile\shellex]
[HKEY_CLASSES_ROOT\piffile\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\piffile\shellex\ContextMenuHandlers\AVG8 Shell Extension]
@="{9F97547E-4609-42C5-AE0C-81C61FFAEBC3}"
[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]
[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.regWindows 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]
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers]
[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]
[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
explorer.exe → 右鍵「結束工作」。.reg 檔匯入(或右鍵選「合併」)。explorer.exe → 確定。IsShortcut 設為空值導致),若介意可用第三方工具(如「去除捷徑小箭頭」)或修改 HKEY_CLASSES_ROOT\lnkfile\ShellEx\IconHandler 重設。註冊表修復是解決 Windows 7 工作列釘選失效最直接、最徹底的方法。