现在的位置: 首页 > 综合 > 正文

win7锁定任务栏

2013年10月08日 ⁄ 综合 ⁄ 共 450字 ⁄ 字号 评论关闭

@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

抱歉!评论已关闭.