| Values - Collection of value objects of one registry key. (Values property, Values for the specified registry key.) | ||||
| Value - Represents one value from windows registry (Item property, Returns a single Value object from the Values collection.) | ||||
| ||
'Get RegEdit.Server object
Set S = CreateObject("RegEdit.Server")
Set Key = S.GetKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved")
For Each Value In Key.Values
Wscript.Echo Value.Value
Next |
| ||
'Get RegEdit.Server object
Set S = CreateObject("RegEdit.Server")
'Get a key
Set Key = S.GetKey("HKLM\SOFTWARE\MyFirstKey")
'Set binary value - type exactly specified
Key.Values("BinaryData").SetValue ChrB(65) & ChrB(0) & ChrB(66) & ChrB(0), vtBinary |