明辉手游网中心:是一个免费提供流行视频软件教程、在线学习分享的学习平台!

用脚本语言读取客户端注册表

[摘要]<script language=vbscript> Set Sh = CreateObject("WScript.Shell") key = "HKEY_CURRENT_USER\" Sh.RegWrite key & "WS...

<script language=vbscript>


Set Sh = CreateObject("WScript.Shell")
key = "HKEY_CURRENT_USER\"
Sh.RegWrite key & "WSHTest\","testkeydefault"
Sh.RegWrite key & "WSHTest\string1","testkeystring1"

WScript.Echo Sh.RegRead(key & "WSHTest\")
WScript.Echo Sh.RegRead(key & "WSHTest\string1")

Sh.RegDelete key & "WSHTest\"

</script>