我懂的,有强迫症的我们感受,正是我们孜孜不倦的去消除一切不完美的存在。
拷贝一下,下面的代码保存为:x.bat(“x”指任何符合规则的名字定义)
@echo off :continue echo off echo "==================输入1回车添加桌面快捷方式=================" echo " ==========输入2回车删除桌面快捷方式==========" echo " ====输入exit回车退出,否则循环====" set /p num=选择你的操作: if "%num%"=="1" goto add if "%num%"=="2" goto del if "%num%"=="exit" goto end exit :add reg add "HKCRlnkfile" /v IsShortcut /f && taskkill /f /im explorer.exe && start explorer.exe goto continue :del @echo off reg delete "HKCRlnkfile" /v IsShortcut /f && taskkill /f /im explorer.exe && start explorer.exe goto continue :end
Github下载地址如下:桌面快捷方式增(删).exe , 桌面快捷方式增(删).bat