473,505 Members | 13,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_USER\Software\Microsoft\Windows CE
Services\Partners\NUMPARTNERSHIP\Service\Synchroni sation\BriefCase 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...Hope you'll
help me....

Oct 5 '06 #1
3 9412
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_USER\Software\Microsoft\Windows CE
Services\Partners\NUMPARTNERSHIP\Service\Synchroni sation\BriefCase 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...Hope you'll
help me....
Oct 5 '06 #2
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_USER\Software\Microsoft\Windows CE
Services\Partners\NUMPARTNERSHIP\Service\Synchroni sation\BriefCase 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...Hope you'll
help me....
Oct 5 '06 #3
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_USER\Software\Microsoft\Windows CE
Services\Partners\NUMPARTNERSHIP\Service\Synchroni sation\BriefCase 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...Hope you'll
help me....
Oct 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
2296
by: Paul Rubin | last post by:
As what must be penance for something or other, I'm needing to release a Python app for use under Windows XP. Please be gentle with me since I'm a Un*x weenie and the only thing I've had much...
5
12922
by: Dhilip Kumar | last post by:
Hi All, I'm writing a Windows Service app using C#. I need to read some configuration settings before the service starts up. These settings will be used by the service in its operation. ...
3
2348
by: Mark Findlay | last post by:
When programming reads of the Windows Registry, do the registry keys and values need to be localized for international use? For example, do I need to convert the key name...
27
4686
by: pisquem | last post by:
I am building an windows service that is to be deployed on a windows server 2003 and I want to have activity written to the event log, I want its own log called ('CustomLog') Below is what I...
16
1818
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm looking for a way to programmatically retrieve the following if possible: Windows Installation Key or COA from the registry Windows installed...
5
3655
by: =?Utf-8?B?Qkw=?= | last post by:
Hello friends In c# 2005 I have written a function to access "font file name" by "Font name" and it is working fine in all the windows version other than vista, in vista it is throughing an...
2
4169
by: =?Utf-8?B?SnJ4dHVzZXIx?= | last post by:
I just started using Windows Live OneCare, I had been using Norton, but was unable to fix the problems I was having. I have yet been unsuccessful with OneCare as well. I keep getting the same...
3
1637
by: thephatp | last post by:
BLUF: I need to build up the actual %TEMP% path for all users methodically using values in the registry, and I need to do this both by the current user AND as a service will do this running as...
0
9188
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Description NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview". Que-1: How can I safely remove or edit the autorun...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.