Windows7作業系統提供了一個比較人性化的功能:就是將常用的應用程式鎖定到工作列。但是可能部分使用者發現這個功能最近不好用了,在工作列上按右鍵某應用程後,不會出現“將此程式鎖定到工作列”這個功能表項目的提示,這是怎麼回事呢?我在網上查了一下,終於找到了答案。
產生此問題的主要原因是該服務可能被最佳化軟體禁止啟動了,既然最佳化軟體可以禁止啟動,咱就可以將其恢複為正常啟動。下面有一段小程式,將其寫到記事本中,並將其儲存為xxx.bat,儲存關閉後,雙擊這個檔案,則執行該批處理後,選擇2並斷行符號即可。如果選擇1斷行符號,則會實現去掉案頭捷徑上小箭頭的作用。
@echo off
color 02
echo 請選擇要執行的操作(1-刪除,2-恢複,3-退出)
set
choice=
set /p choice=請選擇(1/2/3)按斷行符號執行:
if /i '%choice%'=='1' goto a
if
/i '%choice%'=='2' goto b
if /i '%choice%'=='3' goto end
:a
reg delete
HKEY_CLASSES_ROOT\piffile /v IsShortcut /f
reg delete
HKEY_CLASSES_ROOT\lnkfile /v IsShortcut /f
taskkill /f /im
explorer.exe
cls
explorer.exe
:b
reg add HKEY_CLASSES_ROOT\lnkfile
/v IsShortcut /t REG_SZ /f
reg add HKEY_CLASSES_ROOT\piffile /v IsShortcut /t
REG_SZ /f
taskkill /f /im
explorer.exe
cls
explorer.exe
:end
exit
去除箭頭的批命令
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,196" /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