各位高手, 我想实现这样一个功能: 批处理禁用迅雷、暴风 等软件,现在有个代码:
[color=#FF6600]reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 1 /t REG_SZ /d "thunder.exe " /f > nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 2 /t REG_SZ /d "qq.exe " /f > nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 3 /t REG_SZ /d "qvodplayer.exe " /f > nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 4 /t REG_SZ /d "storm.exe " /f > nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 5 /t REG_SZ /d "kugou2009.exe " /f > nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 6 /t REG_SZ /d "emule.exe " /f > nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 7 /t REG_SZ /d "rtxc.exe " /f > nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun " /v 8 /t REG_SZ /d "realplay.exe " /f > nul
echo "处理完毕!! "
pause[/color]
但是 这种方法必须配合[color=#FF0000]手动设置[/color][color=#FF6600]组策略中的 "不允许执行程序 "[/color]的开启,还是有点麻烦,我想一次全部禁止,不知怎么实现......
------解决方案--------------------------------------------------------
个人推荐映像劫持
其他的不太靠谱(或者局限性较大)
------解决方案--------------------------------------------------------
用bat来搞嘛???8错,简单。