Registry
-
Do you have any c# code that would export registry file? and save it as text format? pls help... I know how to manually export registry file thru registry editor. But how do we do it programmatically using c#? Thanks
-
Do you have any c# code that would export registry file? and save it as text format? pls help... I know how to manually export registry file thru registry editor. But how do we do it programmatically using c#? Thanks
http://geekswithblogs.net/mnf/archive/2005/09/30/55580.aspx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
Do you have any c# code that would export registry file? and save it as text format? pls help... I know how to manually export registry file thru registry editor. But how do we do it programmatically using c#? Thanks
Use
Microsoft.Win32
namespace. You can find there aRegistryKey
class:RegistryKey root = Registry.LocalMachine;
Then create a recursive method which would scan the whole registry, using GetSubKeys, GetValueNames and GetValue methods. The recurse would hang on the iteration through
GetSubKeys
method.Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.