this will create a key under hkey_local_machine\software
named MyFirstKey
and under that key it will set the default subkey to equal c:\progran files\my
and create another key called Example with the value of 1
'Get RegEdit.Server object
Set S = CreateObject("RegEdit.Server")
'Get a key
Set Key = S.GetKey("HKLM\SOFTWARE")
'Add a new key
Set MyKey = Key.CreateKey("MyFirstKey")
'or Set MyKey = Key.SubKeys.Add("MyFirstKey")
'Set String and DWORD values
MyKey.Values("") = "C:\Program Files\My"
S.GetKey("HKLM\SOFTWARE\MYFIRSTKEY").Values("Example")="1"
Does anyone know how to set a Dword value in the registry??

Hope this helps