删除快捷方式右下图标后,并能添加到快速启动栏

当桌面太多快捷方式,如果每个快捷方式都带有多余的类似返回的logo,这种不美观,对于有强迫症的程序猿来说,心里感觉很是不爽,下面就提供bat命令,来解决这个问题:

 

@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

复制到记事本另存为xx.bat格式,双击选择1,即可让界面瞬间清爽。

posted @ 2015-10-27 23:19  爱踢球的程序猿  阅读(246)  评论(0)    收藏  举报