RegistryTry something like this:
Sub CreateKey(RegKey,Value)
Dim Shell
Set Shell = CreateObject("Wscript.Shell")
On Error Resume Next
Err.Raise(Shell.RegRead(RegKey))
If Len(Err.Description) = 41 Then
Shell.RegWrite RegKey & "\",Value
End If
End Sub
Hi
I want to generate a key and a value in the registry. This is easy
enough - but I want to check if the key exists before doing this (if
it does I dont want to create it) - how can I do this?
Kind regards
Siv