[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[系统相关] Win7如何用批处理将一个快捷方式锁定到任务栏

本帖最后由 pcl_test 于 2016-8-27 00:40 编辑

如题,WIN7

  1. @echo off
  2. reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v Favorites /f
  3. reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v FavoritesResolve /f
  4. reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v Favorites /t REG_BINARY /d 008401000014001f80c827341f105c1042aa032ee45287d66852003100000000001a49207011005461736b426172003c0008000400efbe19498c711a4920702a000000c70400000000020000000000000000000000000000005400610073006b00420061007200000016001c0132005e0500001949a4712000494e5445524e7e322e4c4e4b0000ae0008000400efbe1a4905701a4920702a00000064e500000000140000000000000000005e000000000049006e007400650072006e006500740020004500780070006c006f0072006500720020002800320029002e006c006e006b000000400043003a005c00570069006e0064006f00770073005c00530079007300740065006d00330032005c00690065003400750069006e00690074002e006500780065002c002d0037003300340000001c00520000001d00efbe02004d006900630072006f0073006f00660074002e0049006e007400650072006e00650074004500780070006c006f007200650072002e00440065006600610075006c00740000001c000000ff
  5. reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v FavoritesResolve /t REG_BINARY /d e90200004c0000000114020000000000c00000000000004683008000200000008d3a6e28a2ffd101ddde3745a2ffd10199516bcddafed1015e0500000000000001000000000000000000000000000000840114001f80c827341f105c1042aa032ee45287d66852003100000000001a49207011005461736b426172003c0008000400efbe19498c711a4920702a000000c70400000000020000000000000000000000000000005400610073006b00420061007200000016001c0132005e0500001949a4712000494e5445524e7e322e4c4e4b0000ae0008000400efbe1a4905701a4920702a00000064e500000000140000000000000000005e000000000049006e007400650072006e006500740020004500780070006c006f0072006500720020002800320029002e006c006e006b000000400043003a005c00570069006e0064006f00770073005c00530079007300740065006d00330032005c00690065003400750069006e00690074002e006500780065002c002d0037003300340000001c00520000001d00efbe02004d006900630072006f0073006f00660074002e0049006e007400650072006e00650074004500780070006c006f007200650072002e00440065006600610075006c00740000001c000000b30000001c000000010000001c0000003400000000000000b2000000180000000300000093f67d1c10000000363457696e372000433a5c55736572735c41646d696e6973747261746f725c417070446174615c526f616d696e675c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63685c557365722050696e6e65645c5461736b4261725c496e7465726e6574204578706c6f726572202832292e6c6e6b000060000000030000a058000000000000006a6b2d32303136303832357767657800000000000000000000000000000000009184d3d4866be6119c59b14500f4134c000000000000000000000000000000009184d3d4866be6119c59b14500f4134c00000000
  6. copy "C:\Users\%username%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Internet Explorer.lnk" "C:\Users\%username%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned"
  7. del /f /q "C:\Users\%username%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"
  8. move "C:\Users\%username%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\Internet Explorer.lnk" "C:\Users\%username%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"
复制代码
执行后,图标变白色,打不开

TOP

返回列表