CreateSubKey
Previous  Next

Creates a new subkey.
Syntax: CreateSubKey (SubKey As String, NewSubKey As String)
SubKey - The parent subkey.
NewSubKey - The new subkey that should be created.

CreateSubKey does nothing if the new subkey already exists.

Example:
Sub App_Start
      reg.New1
      reg.RootKey(reg.rtCurrentUser)
      reg.CreateSubKey("Software","My Application")
End Sub

Example: (same as the above example)
Sub App_Start
      reg.New1
      reg.RootKey(reg.rtCurrentUser)
      reg.CreateSubKey("","Software\My Application")
End Sub