|
我打算把注册表中HKEY_LOCAL_MACHINE\Software\Tencent\QQ下面
名称为:Install 数据为:E:\Program Files\Tencent\QQ
这个路径值读出来
RegistryKey rkTemp = Registry.LocalMachine.OpenSubKey(@"HKEY_LOCAL_MACHINE\Software\Tencent\QQ");
string path = rkTemp.GetValue("Install").ToString();
但不能成功,请指点,谢谢~~~请附上代码 |
|