增加开机自启配置

This commit is contained in:
XingCheng3
2026-05-16 14:50:22 +08:00
parent 9aaa9a97e9
commit 3b871f24b3
3 changed files with 286 additions and 6 deletions

View File

@@ -170,6 +170,8 @@ namespace MesWork
[STAThread]
static void Main()
{
Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;
new System.Threading.Mutex(true, $"MES_PWT_A95", out bool bCanRun);
if (!bCanRun)
{