一个小小的批处理。。。
@echo off
cls
color 0B
echo
echo
echo
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 ======强制刷新组策略和注册表结束======
.....
相信有人看得懂