Windows Registry Key C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Giovanni De Angelis

    #1

    Windows Registry Key C#

    Hi all,
    I am trying to develop a program in C# and I need to change some
    registry keys with a dinamic entries. Let's explain better.
    I've to change automatically the "Briefcase Path" key of the
    partnership created by Microsoft Active Sync but the name is not fixed.

    I'd like to find in the registry the key named "Briefcase Path" and
    then to change the value with a chosen one.
    Usually the key is located in:

    \HKEY_CURRENT_U SER\Software\Mi crosoft\Windows CE
    Services\Partne rs\NUMPARTNERSH IP\Service\Sync hronisation\Bri efCase Path



    and NUMPARTNERSHIP is a name dinamically created for each parntnership
    by Active Sync. Does anybody knows a way to solve this problem in C#?


    Thanks for your advice


    Giovanni

    Ps.I'm sorry as I've posted the same message on Developer...Hop e you'll
    help me....

  • Chris Fulstow

    #2
    Re: Windows Registry Key C#

    Check out the Microsoft.Win32 .Registry and RegistryKey classes:
    http://msdn2.microsoft.com/en-us/lib....registry.aspx

    Giovanni De Angelis wrote:
    Hi all,
    I am trying to develop a program in C# and I need to change some
    registry keys with a dinamic entries. Let's explain better.
    I've to change automatically the "Briefcase Path" key of the
    partnership created by Microsoft Active Sync but the name is not fixed.
    >
    I'd like to find in the registry the key named "Briefcase Path" and
    then to change the value with a chosen one.
    Usually the key is located in:
    >
    \HKEY_CURRENT_U SER\Software\Mi crosoft\Windows CE
    Services\Partne rs\NUMPARTNERSH IP\Service\Sync hronisation\Bri efCase Path
    >
    >
    >
    and NUMPARTNERSHIP is a name dinamically created for each parntnership
    by Active Sync. Does anybody knows a way to solve this problem in C#?
    >
    >
    Thanks for your advice
    >
    >
    Giovanni
    >
    Ps.I'm sorry as I've posted the same message on Developer...Hop e you'll
    help me....

    Comment

    • Giovanni De Angelis

      #3
      Re: Windows Registry Key C#

      Thanx a lot....Now I'm trying to put the pieces together to solve my
      problems...
      Have a nice day..

      Giovanni



      Chris Fulstow ha scritto:
      Check out the Microsoft.Win32 .Registry and RegistryKey classes:
      http://msdn2.microsoft.com/en-us/lib....registry.aspx
      >
      Giovanni De Angelis wrote:
      Hi all,
      I am trying to develop a program in C# and I need to change some
      registry keys with a dinamic entries. Let's explain better.
      I've to change automatically the "Briefcase Path" key of the
      partnership created by Microsoft Active Sync but the name is not fixed.

      I'd like to find in the registry the key named "Briefcase Path" and
      then to change the value with a chosen one.
      Usually the key is located in:

      \HKEY_CURRENT_U SER\Software\Mi crosoft\Windows CE
      Services\Partne rs\NUMPARTNERSH IP\Service\Sync hronisation\Bri efCase Path



      and NUMPARTNERSHIP is a name dinamically created for each parntnership
      by Active Sync. Does anybody knows a way to solve this problem in C#?


      Thanks for your advice


      Giovanni

      Ps.I'm sorry as I've posted the same message on Developer...Hop e you'll
      help me....

      Comment

      • Giovanni De Angelis

        #4
        Re: Windows Registry Key C#

        Wow...I've solve all my problems and now it works well...
        Thanks a lot Chris...
        bye

        Giovanni


        Giovanni De Angelis ha scritto:
        Thanx a lot....Now I'm trying to put the pieces together to solve my
        problems...
        Have a nice day..
        >
        Giovanni
        >
        >
        >
        Chris Fulstow ha scritto:
        >
        Check out the Microsoft.Win32 .Registry and RegistryKey classes:
        http://msdn2.microsoft.com/en-us/lib....registry.aspx

        Giovanni De Angelis wrote:
        Hi all,
        I am trying to develop a program in C# and I need to change some
        registry keys with a dinamic entries. Let's explain better.
        I've to change automatically the "Briefcase Path" key of the
        partnership created by Microsoft Active Sync but the name is not fixed.
        >
        I'd like to find in the registry the key named "Briefcase Path" and
        then to change the value with a chosen one.
        Usually the key is located in:
        >
        \HKEY_CURRENT_U SER\Software\Mi crosoft\Windows CE
        Services\Partne rs\NUMPARTNERSH IP\Service\Sync hronisation\Bri efCase Path
        >
        >
        >
        and NUMPARTNERSHIP is a name dinamically created for each parntnership
        by Active Sync. Does anybody knows a way to solve this problem in C#?
        >
        >
        Thanks for your advice
        >
        >
        Giovanni
        >
        Ps.I'm sorry as I've posted the same message on Developer...Hop e you'll
        help me....

        Comment

        Working...