|
-
Nov 8th, 2000, 10:17 PM
#1
Thread Starter
Junior Member
How can I rename key (or subkey) in windows registry?
-
Nov 8th, 2000, 10:43 PM
#2
Hyperactive Member
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: 
-
Nov 9th, 2000, 03:28 AM
#3
Thread Starter
Junior Member
-
Nov 9th, 2000, 06:24 AM
#4
Copy the key with all contents to new name and delete old ones (if there's no renaming way).
-
Nov 9th, 2000, 09:01 PM
#5
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|