【新增】 使用管理员模式运行本地判分系统
This commit is contained in:
@@ -184,14 +184,14 @@ class Program
|
||||
{
|
||||
FileName = exePath,
|
||||
WorkingDirectory = workingDirectory, // 必须!
|
||||
UseShellExecute = true // 或 false,根据需要
|
||||
UseShellExecute = true, // 或 false,根据需要
|
||||
Verb = "runas" // 指定管理员运行
|
||||
};
|
||||
// 检测一下端口是否被占用48080
|
||||
// 检测一下端口是否被占用48082
|
||||
if (!IsPortInUse("judgement"))
|
||||
{
|
||||
Process.Start(startInfo);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else if (action == "/start")
|
||||
|
Reference in New Issue
Block a user