Registry Help - Should be dead easy
ok guys, i want to check a key exists if yes then exit sub, but if it dont exist create it and then exit sub.
<vbcode>
Public Sub Check_Reg()
If Registry.LocalMachine.Name = ("SOFTWARE\Trinity Expert Systems plc\Data Migration Script Creator") = True Then
Debug.WriteLine("Key Exists")
Else
Registry.LocalMachine.CreateSubKey("SOFTWARE\Trinity Expert Systems plc\Data Migration Script Creator")
End If
End Sub
</vbcode>
thats what i got, dunno if its right guys, Help me please, tnx guys, u all rule
BTW i am useing .NET