C#后台执行bat
ProcessStartInfo p = new ProcessStartInfo();
p.FileName = "C:\\1.bat";
p.WindowStyle = ProcessWindowStyle.Hidden;
p.ErrorDialog = false;
p.CreateNoWindow = true;
Process.Start(p);
Powered by: 博客园 Copyright © 2024 ArRan Powered by .NET 8.0 on Kubernetes