自定义标签 js 未创建
推荐资讯
SOFTWARE\TENCENT\RTXServer"
            string path = null;,新开千年私服
            try
            {
                RegistryKey pregkey;
                pregkey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\TENCENT\RTXServer");
                if (pregkey == null)
                {
                    MessageBox.Show("读取注册表出错");
                }
                else
                {
                    path = (string)pregkey.GetValue("INSTALLDIR");//path是得到xml文件的路径,1.85合击传奇,XmlPath是注册表中这个项给的值
                    if (path.Length == 0)
                    {
                        MessageBox.Show("读取注册表为空");
                    }
                }
                return path;  
ADS
友情链接