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:
Private Sub Command1_Click() Dim WshShell As Object Set WshShell = CreateObject("wscript.Shell") WshShell.RegWrite "HKLM\software\dumbtest\Value", "Update", "REG_SZ" Debug.Print WshShell.RegRead("HKLM\software\dumbtest\Value") WshShell.RegDelete "HKLM\software\dumbtest\Value" 'deletes value WshShell.RegDelete "HKLM\software\dumbtest\Value\" 'deletes entire key Set WshShell = Nothing End Sub
That is all
Seahag




Reply With Quote