当前位置: 移动技术网 > IT编程>网络>Dos/Bat > 用批处理去掉快捷方式上的小箭头图案的代码

用批处理去掉快捷方式上的小箭头图案的代码

2017年12月08日  | 移动技术网IT编程  | 我要评论
复制代码 代码如下: @echo off color 02 echo 请选择要执行的操作(1-删除,2-恢复,3-退出) set choice= set /p choice
复制代码 代码如下:

@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 "
双击运行 选择1删除 2恢复

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网