|
-
Oct 11th, 2002, 04:16 PM
#1
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|