C#??Windows??????????????
???????????? ???????[ 2014/6/17 13:53:03 ] ????????C# net
?????????????????????????????y?????????顣
????1 string path = Directory.GetCurrentDirectory() + "/config.ini";
????2 List<string> serviceGroups = INIHelper.GetAllSectionNames(path);
????3 cboServiceGroup.DataSource = serviceGroups;
???????е?INI???????ο??????http://www.cnblogs.com/mahongbiao/p/3751153.html
?????????????????????????System.ServiceProcess??????
????????????飺
1 if (string.IsNullOrEmpty(cboServiceGroup.Text))
2 {
3 MessageBox.Show("?????????????????");
4 return;
5 }
6 //
7 string path = Directory.GetCurrentDirectory() + "/config.ini";
8 string section = cboServiceGroup.Text;
9 string[] keys;
10 string[] values;
11 INIHelper.GetAllKeyValues(section?? out keys?? out values?? path);
12 //
13 foreach (string value in values)
14 {
15 ServiceController sc = new ServiceController(value);
16 //
17 try
18 {
19 ServiceControllerStatus scs = sc.Status;
20 if (scs != ServiceControllerStatus.Running)
21 {
22 try
23 {
24 sc.Start();
25 }
26 catch (Exception ex)
27 {
28 MessageBox.Show("??????????
" + ex.ToString());
29 }
30 }
31 }
32 catch (Exception ex)
33 {
34 MessageBox.Show("?????????" + value);
35 }
36 //
37 }
38 //
39 MessageBox.Show("??????????");
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????C#?е?StringC# Socket???????????????????C#?????????????????????????C#???????C#????????????Log4net??????δ????C#?????????????C#?????????????????C#???????????????C#????????????????C#7 ?е?Tuple??????C#??TypeScript - GeneratorC# ?????????細??????????C#?е???н???C#??MySQL?????????μ??Ч?????д??C#????C++??dll???C#??VS2010????е??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????