Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Windows教程綜合 >> 關於windows >> win7不能把程序鎖定到任務欄的解決方法

win7不能把程序鎖定到任務欄的解決方法

日期:2017/2/7 13:22:59      編輯:關於windows
 

最近在使用windows7 的時侯遇到一個問題,就是常用程序和快捷方式不能鎖定到任務欄,我當時不知怎麼回事,但是很多現有的方法都不能解決這個問題,在我看了很多資料以後我發現了這個問題就出在piffile和lnkfile上面。現在我把我的解決的方法共享給大家。

先在桌面上新建一個txt的文件名稱為1,把下面的文字拷到裡面,把擴展名改為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]
[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}"

然後在新建一個2的txt文件,然後把下面的內容拷入,把擴展名改為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]
[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”進程結束掉,然後點擊任務管理器的文件---新建任務,把剛才的兩個reg文件一次導入,在啟動C:\Windows\explorer.exe(看你的系統安裝在那個盤的哦),看看是不是就可以程序和快捷方式pin如任務欄了啊!!
哈哈,不過這樣有問題哦,你會發現快捷方式上多了一個箭頭,這個是很煩的。

Copyright © Windows教程網 All Rights Reserved