RegistryKey extsubkey = Registry.ClassesRoot.OpenSubKey(".doc");
            string extdefaultvalue = extsubkey.GetValue(null) as string;
            //if (extdefaultvalue.Equals("exefile", StringComparison.OrdinalIgnoreCase))  //扩展名类型是可执行文件 
            //{
                RegistryKey exefilesubkey = Registry.ClassesRoot.OpenSubKey(extdefaultvalue);  //从注册表中读取文件类型名称的相应子键 
                if (exefilesubkey != null)
                {
                    string exefiledescription = exefilesubkey.GetValue(null) as string;   //得到exefile描述字符串 
    
                }
           // }
        }

相关文章:

  • 2021-12-30
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
猜你喜欢
  • 2021-07-30
  • 2021-05-21
  • 2022-01-06
  • 2021-11-29
  • 2021-12-29
相关资源
相似解决方案