Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Registry

Registry

Scheduled Pinned Locked Moved C#
csharpwindows-adminhelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    toink toink
    wrote on last edited by
    #1

    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

    V L 2 Replies Last reply
    0
    • T toink toink

      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

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      http://geekswithblogs.net/mnf/archive/2005/09/30/55580.aspx[^]

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      1 Reply Last reply
      0
      • T toink toink

        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

        L Offline
        L Offline
        Lutoslaw
        wrote on last edited by
        #3

        Use Microsoft.Win32 namespace. You can find there a RegistryKey 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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups