win11删除快捷方式小箭头

前言

因为安装了火绒安全,所以没有360的人工服务中的删除快捷方式小箭头了,所以在网上重新找了代码。

教程

首先新建一个txt文本,然后将如下代码放进去,再另存为删除快捷方式小箭头.bat ,选择编码为Ansi,保存打开即可。

@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_ROOTpiffile /v IsShortcut /f
reg delete HKEY_CLASSES_ROOTlnkfile /v IsShortcut /f
taskkill /f /im explorer.exe
cls
explorer.exe
:b
reg add HKEY_CLASSES_ROOTlnkfile /v IsShortcut /t REG_SZ /f
reg add HKEY_CLASSES_ROOTpiffile /v IsShortcut /t REG_SZ /f
taskkill /f /im explorer.exe
cls
explorer.exe
:end
exit

 

THE END