去掉win7快捷方式箭头及修复锁定到任务栏失效

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-1 10:33   781   0

@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

上边的内容保存到一个bat文件,根据提示操作.

转载于:https://www.cnblogs.com/aboutblank/archive/2013/01/16/2862504.html

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP