[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 511
  • Last Modified:

Renaming registry subkey

How to rename a registry subkey?
0
bobdesign
Asked:
bobdesign
1 Solution
 
dabblerCommented:
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
 
gmainCommented:
Are you trying to do this programmatically or manually?
0
 
mikeblasCommented:
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
 
bobdesignAuthor Commented:
Yes, I need to do it in my program. Thank you all.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now