How can I search for a certain Key, then delete it from the windows registry...
(I looked at the tutorials, but they had to much info I didn't need.)
Printable View
How can I search for a certain Key, then delete it from the windows registry...
(I looked at the tutorials, but they had to much info I didn't need.)
hi,
go to kedamans website and on hte download section there is a .bas that you can download that does exactly that
http://www.kedaman.com
Merlin ?
Someone helped me out with this. Refer to this link: http://forums.vb-world.net/showthrea...threadid=21286
It may help you.
Ok, none of thoes search out the actual key... I am looking for code that will search the key, more than focusing on deleting it, because that isn't a big problem..but I can't find crap on searching for a key...
Private Sub Command1_click()
ky = {123-124-5432-342-3432-124}
RegSearchKey ky 'This looks for the key
If ky <> "" Then 'or whatever the code is...
MsgBox "Key not found"
End
Else
RegDeleteKey ky 'This deletes the key once found
End
End If
End Sub
Is there not something like that i can use? It cant require that much to search the registy...can it?
Well this is a hard one, well if you know how to do a search method for directories, you probably could do that for registry too.
My registry module has a function that returns all subkeys in an array so you could have a go for it ;)