利用批处理脚本删除快捷方式的小箭头
脚本内容
@echo off
TITLE 删除快捷方式小箭头
cls
color 0B
rem ======下面是注册表修改操作部分======
reg delete HKCR\piffile /v IsShortcut /f
reg delete HKCR\lnkfile /v IsShortcut /f
rem ======强制刷新组策略和注册表开始======
Set "TMPINF=%temp%\TmpInf.inf"
echo [Version] >%TMPINF%
echo Signature="$Windows NT$" >>%TMPINF%
echo [DefaultInstall] >>%TMPINF%
RUNDLL32 SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 %TMPINF%
del %TMPINF% /q
rem ======强制刷新组策略和注册表结束======
恢复快捷方式的小箭头
@echo off
TITLE 删除快捷方式小箭头
cls
color 0B
rem ======下面是注册表修改操作部分======
reg add HKCR\piffile /v IsShortcut /f
reg add HKCR\lnkfile /v IsShortcut /f
rem ======强制刷新组策略和注册表开始======
Set "TMPINF=%temp%\TmpInf.inf"
echo [Version] >%TMPINF%
echo Signature="$Windows NT$" >>%TMPINF%
echo [DefaultInstall] >>%TMPINF%
RUNDLL32 SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 %TMPINF%
del %TMPINF% /q
rem ======强制刷新组策略和注册表结束======
阅读(2173) | 评论(0) | 转发(0) |