灰儿 发表于 2008-3-23 18:22:15

关闭与启用DirectDraw的VBS脚本

本帖最后由 灰儿 于 2010-9-16 20:18 编辑

'**********************************************
'*by huier
'*关闭 DirectDraw
'**********************************************
Set WshShell=CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\DirectDraw\EmulationOnly","1","REG_DWORD"
wscript.echo "关闭 DirectDraw 成功"
set WshShell=nothing

----------------------------------------------------------------------------------------------------------------------------------

'**********************************************
'*by huier
'*启用 DirectDraw
'**********************************************
Set WshShell=CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\DirectDraw\EmulationOnly","0","REG_DWORD"
wscript.echo "启用 DirectDraw 成功"
set WshShell=nothing

----------------------------------------------------------------------------------------------------------------------------------
注:HKLM是HKEY-LOCAL-MACHINE就简略写法。
页: [1]
查看完整版本: 关闭与启用DirectDraw的VBS脚本