Creates the specified key. If the key already exists in the registry, the method opens it.
Set NewKey = Key.CreateKey (Name as String)
Where | Type | Optional | Default | Description |
---|---|---|---|---|
Name | String | Name of the new key. |
Key - One registry key.
CreateKey Method uses RegCreateKey API function.
Create ".utl" registry key. |
'Get RegEdit.Server object Set S = CreateObject("RegEdit.Server") 'Connect to the remote registry S.Connect "ServerName", rkClassesRoot 'Add a new file type Set Key = S.Keys.Add(".utl") Key.CreateKey "ShellNew" Key.SubKeys("ShellNew").Values("Command") = "notepad.exe" |
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