Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Renaming registry subkey

Posted on 1998-03-27
4
Medium Priority
?
508 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
ID: 1317281
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
ID: 1317282
Are you trying to do this programmatically or manually?
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 60 total points
ID: 1317283
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
ID: 1317284
Yes, I need to do it in my program. Thank you all.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

782 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