goback add

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

3259 点击·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


制到记事本
文件后缀改为“ .bat "
双击运行 选择1删除 2恢复

喜欢0 评分0
Sun_
沙发
顶起。。。看看

回复(0) 喜欢(0)     评分