Subkeys of the key.
Set vSubKeys = Key.SubKeys
Keys - Collection of key objects of one registry key.
SubKeys Property uses RegEnumKey API function.
Enumerate subkeys. |
'Get RegEdit.Server object
Set S = CreateObject("RegEdit.Server")
'Get a key
Set MyKey = S.GetKey("HKLM\SOFTWARE\MyFirstKey")
'Delete subkeys
For Each Key In MyKey.SubKeys
Wscript.Echo Key.Name
Next |
Add new key |
'Get RegEdit.Server object
Set S = CreateObject("RegEdit.Server")
'Get a key
Set Key = S.GetKey("HKLM\SOFTWARE")
'Add a new key
'or Set MyKey = Key.SubKeys.Add("MyFirstKey") |
Close, CreateKey, Delete, ExistsKey, ExistsValue, Flush, numSubKeys, numValues, Save
Class, hKey, LastWriteTime, Name, SubKeys, Values
One registry key.
Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.
© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz