-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
41 lines (35 loc) · 977 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace setup
{
class Program
{
static void Main(string[] args)
{
int userPass = 0;
char u1 = '0';
while (true)
{
Console.WriteLine("安装windows服务请输入 1 ,卸载windows服务请输入 2.");
userPass = Console.Read();
u1 = ((char)userPass);
if (u1 == '1' || u1 == '2')
{
break ;
}
}
windowsServer w = new windowsServer();
w.run(u1);
//Console.WriteLine("");
//Console.WriteLine("");
//Console.WriteLine("执行完成,执行结果,请看上面日志.");
while (true)
{
Console.ReadLine();
}
}
}
}