【新增】 使用管理员模式运行本地判分系统

This commit is contained in:
dlaren
2025-08-25 13:44:15 +08:00
parent f5007c49fe
commit 3e1020babe

View File

@@ -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")