using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe");
Console.WriteLine(key.GetValue("").ToString());//GetValue参数值为空时读取默认值
Console.ReadKey();
}
}
}
评论(0)
暂无评论。