Solved

Renaming registry subkey

Posted on 1998-03-27
4
496 Views
Last Modified: 2013-11-20
How to rename a registry subkey?
0
Comment
Question by:bobdesign
4 Comments
 
LVL 1

Expert Comment

by:dabbler
Comment Utility
You can't do this--you'll have to create a new subkey with the new name you want, copy all of the info for the old subkey (recursively), then delete the old subkey (recursively, if on NT).
0
 

Expert Comment

by:gmain
Comment Utility
Are you trying to do this programmatically or manually?
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 20 total points
Comment Utility
If you want to do it manually, right-click on the entry in the registry editor and chose "rename".  Then, just type the new name.

If you need to do it manually, you'll have to read, store, delete, and recreate the whole sub tree recursively. There's no way around it, and that's that. (In fact, that's what the registry editor is doing when you use it's rename command.)

.B ekiM

0
 

Author Comment

by:bobdesign
Comment Utility
Yes, I need to do it in my program. Thank you all.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now