From 3e1020babe4b03afbe38ad53119bd137676e53c8 Mon Sep 17 00:00:00 2001 From: dlaren Date: Mon, 25 Aug 2025 13:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=AE=A1=E7=90=86=E5=91=98=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=9C=AC=E5=9C=B0=E5=88=A4=E5=88=86=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/Program.cs b/Applications/Program.cs index e659a7e..a7effbd 100644 --- a/Applications/Program.cs +++ b/Applications/Program.cs @@ -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")