如果我有一个注册表路径:
HKEY_LOCAL_MACHINE\SOFTWARE\INTERSTAR\XFILES\CONFIG MANAGER\SYSTEM\COMPANIES 我该如何列出该路径/目录下的所有记录,并访问DWORD、REG_SZs和数据?
提前感谢
发布于 2009-02-14 10:22:08
一种选择是使用WMI:
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Services"
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
Wscript.Echo subkey
Next你可以在这里找到更多有用的注册表脚本:http://www.activexperts.com/activmonitor/windowsmanagement/scripts/operatingsystem/registry/
https://stackoverflow.com/questions/548824
复制相似问题