zoukankan
html css js c++ java
如何获取本机已经安装了的软件的列表?
using
System;
using
Microsoft.Win32;
namespace
ConsoleApplication7
{
/**/
///
<summary>
///
Class1 の概要の説明です。
///
</summary>
class
Class1
{
/**/
///
<summary>
///
アプリケーションのメイン エントリ ポイントです。
///
</summary>
[STAThread]
static
void
Main(
string
[] args)
{
RegistryKey rk
=
Registry.LocalMachine.OpenSubKey(
"
SOFTWARE
"
);
PrintKeys(rk);
Console.ReadLine();
}
static
void
PrintKeys(RegistryKey rkey)
{
//
Retrieve all the subkeys for the specified key.
String [] names
=
rkey.GetSubKeyNames();
//
Print the contents of the array to the console.
foreach
(String s
in
names)
{
Console.WriteLine(s);
}
}
}
}
查看全文
相关阅读:
C if语句判断年龄
C 计算时间差
C 计算身高
JRebel激活破解完美解决方式
Maven optional和scope
判断当前时间是否在某个时间段内
给定时间加上几个小时
RabbitMQ学习笔记
浏览器、服务器会话
Maven核心知识点梳理
原文地址:https://www.cnblogs.com/sskset/p/153109.html
最新文章
wpf框架
设计模式5 策略模式
设计模式学习4 适配器
制造业中夹具治具模具概念
树莓派中学TensorFlow
windows 下 Django 搭架子
在ubuntu下装python3.6
windows 10下安装linux系统
How do I improve my English speaking skills in a very short time?
大数据表添加主键
热门文章
sql server 合并字段
正则求解@" (?<=^[length=)(d+)(?=])"
EntityFramework Inner Exception Catch
C for阶乘
C do whlie 数数位
C 数数位 while循环
C 计算数字的位数循环
C 判断成绩是否及格
C if 判断 else 否则
C 计算员工工资
Copyright © 2011-2022 走看看