明輝手游網(wǎng)中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

用腳本語言讀取客戶端注冊表

[摘要]<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>