i can't retrieve and/or write a binary or hex value from the regis
From: TonyLamonica (lamoni071_at_yahoo.com)
Date: 12/17/04
- Next message: Zelin Lu: "help, button has to be clicked twice?"
- Previous message: Joe Mayo: "Re: Namespaces and web references"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 13:17:04 -0800
I've successfully accessed the HKLM hive on a local machine. However, after
drilling down to where i need to be, i cannot read and display the correct
data from the key in question. I've added a snippet of code. See where I use
it as a string environmentKey.GetValue(valueName).ToString(). I need to
extract the key as a binary value instead of a string, etc, etc.
try
{
environmentKey = RegistryKey.OpenRemoteBaseKey(
RegistryHive.LocalMachine, remoteName).OpenSubKey(
"System\\Radmin\\v2.0\\Server\\Parameters");
}
foreach(string valueName in environmentKey.GetValueNames())
{
if(valueName == "AskUser")
{
Console.WriteLine("\n{0} : {1}", valueName,
environmentKey.GetValue(valueName).ToString());
}
}
I appreciate the time and patience....thanks!
-- hail the forest daemons
- Next message: Zelin Lu: "help, button has to be clicked twice?"
- Previous message: Joe Mayo: "Re: Namespaces and web references"
- Messages sorted by: [ date ] [ thread ]