Results 1 to 5 of 5

Thread: How can I rename key (or subkey) in windows registry?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Location
    Posts
    25
    How can I rename key (or subkey) in windows registry?

  2. #2
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373

    Exclamation Be Carefull

    Just pay attention!


    I donīt understand wy would you like to do that, but
    this is the way to do it:

    -First launch the Regedit.exe app

    -Find the key or subkey that you want to rename

    -And now press the right button on the mouse "right click" (just to be sure)
    and then choose rename and

    -Now type the new desired name for the key or subkey

    -To finish:
    ->Start praying that you donīt just rename something that for
    recovering you'll have to reinstall your Operating System.

    Saludos...

    "Who Dares Wins" - "Quien se Arriesga Gana"
    Mail me at:

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Location
    Posts
    25
    I mean by VB.

  4. #4
    Guest
    Copy the key with all contents to new name and delete old ones (if there's no renaming way).

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Location
    Posts
    25
    I try to do by using RegSave and RegRestoreKey

    Private Sub SaveKey_Click()
    Dim C As SECURITY_ATTRIBUTES
    Dim Dummy
    Dim Y As Long
    Y = GetSubkeyHandle(txtSectionName.Text)
    Dummy = RegSaveKey(Y, "a:\TryReg", C)
    ' It should be A:\TryReg.reg ' ?
    MsgBox CStr(Dummy) ' It return &H0, is it work?
    End Sub
    this sub work but I don't know how to use RegRestoreKey or I should use RegReplaceKey ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width