Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to rename key(or subkey) in Registry with C#

I have a problem when I try to rename a key in Registry with C#, I can't find any method to do .Help me :WAVE:
[115 byte] By [wintersun] at [2007-11-11 8:15:59]
# 1 Re: How to rename key(or subkey) in Registry with C#
I don't think there is a Win32 (or .NET Framework) method to rename a registry key. You'll have to copy the key and subkeys to the new name, then delete the original.
Phil Weber at 2007-11-11 21:47:48 >
# 2 Re: How to rename key(or subkey) in Registry with C#
hate Microsoft, can delete key while cannot rename!!!
- make a copy of tree key is so hard, hu hu
wintersun at 2007-11-11 21:48:54 >