This works too.

Lots of people suggest useing API. I always suggest this
because its not alot of code.

Can anyone tell me whats better, this or API?


VB Code:
  1. Private Sub Command1_Click()
  2. Dim WshShell As Object
  3. Set WshShell = CreateObject("wscript.Shell")
  4. WshShell.RegWrite "HKLM\software\dumbtest\Value", "Update", "REG_SZ"
  5. Debug.Print WshShell.RegRead("HKLM\software\dumbtest\Value")
  6.  
  7. WshShell.RegDelete "HKLM\software\dumbtest\Value" 'deletes value
  8. WshShell.RegDelete "HKLM\software\dumbtest\Value\" 'deletes entire key
  9. Set WshShell = Nothing
  10. End Sub


That is all
Seahag