-
C#启动Windows IIS服务的实例
C#启动指定的Windows信使服务,本例中是启动IIS服务,在Windows XP下可完美运行,在Windows7下不行好像,本程序演示如何在C#的程序中启动一个指定的Windows内置服务的方法。具体的实现代码:
ServiceController service = new ServiceController();//创建服务控制对象
service.ServiceName = "Messenger";//启动Windows信史服务
//判断当前服务状态
if (service.Status == ServiceControllerStatus.Stopped)
{
try
{
service.Start();// 启动服务
service.WaitForStatus(ServiceControllerStatus.Running);
}
catch (InvalidOperationException)
{
MessageBox.Show("不能启动该服务!");
}
}
- 2022-02-13 12:56:43下载
- 积分:1
-
brball
双色球.
预定一组号,看看机选N次后,你的号码中奖数多高。(Color ball. Book a group number, look at the machine N times after the election, the number of the winning number of tall.)
- 2012-05-18 15:22:55下载
- 积分:1
-
这是一个很好的游戏啊 ,欢迎大家来下在和上穿关于这方面的东西啊...
这是一个很好的游戏啊 ,欢迎大家来下在和上穿关于这方面的东西啊-This is a good game ah, welcoming everyone to come in and under to wear this on the things ah
- 2022-01-26 07:01:43下载
- 积分:1
-
robust
说明: 用H无穷控制,对不稳定系统进行鲁棒控制。本人用车载DVD作了仿真试验,效果较好(H infinite control of instability robust control system. I made a car DVD simulation test, the result is better)
- 2005-11-21 21:14:13下载
- 积分:1
-
带非期望产出的SBM模型
说明: sbm模型非期望产出 matlab数据代码(The unexpected output of MATLAB data code in SBM model)
- 2020-01-17 19:28:19下载
- 积分:1
-
100yineisushu
1-100之间有多少个素数,并输出所有素数及素数的个数。
???? 程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除,则表明此数不是素数,反之是素数。(How many prime numbers are there between 1-100 and output all prime numbers and prime numbers. The method of judging prime number: 2 to sqrt (this number) is removed by one number, and if it can be divided, the number is not prime, and vice versa.)
- 2018-06-13 10:39:18下载
- 积分:1
-
布谷鸟DG规划
说明: 通过布谷鸟群算法对设定的多个目标进行优化,并最终获得分布式电源的最优选址定容(Through the CUCKOO swarm algorithm to optimize the set of multiple objectives, and finally obtain the optimal location of distributed generation capacity)
- 2021-03-24 07:59:14下载
- 积分:1
-
Asp.net
深入剖析Asp.net资源文件,比较实用。读取文件流-Asp.net-depth analysis of resource documents, more practical. Read the file stream
- 2022-01-21 17:59:34下载
- 积分:1
-
QSXJP
一个简单使用socket 通过smtp发邮件的例子(A simple example of using socket to send mail through SMTP.)
- 2018-09-16 11:39:14下载
- 积分:1
-
三目标微网调度
三目标微网调度,含经济调度,环境友好调度,优化调度(Three target microgrid scheduling, including economic dispatch, environment-friendly scheduling, and optimal scheduling.)
- 2018-10-31 13:51:59下载
- 积分:1