程序异常重启代码
System.Diagnostics.ProcessStartInfo cp = new System.Diagnostics.ProcessStartInfo();
cp.FileName = Application.ExecutablePath;
cp.Arguments = "cmd params";
cp.UseShellExecute = true;
System.Diagnostics.Process.Start(cp);
System.Threading.Thread.Sleep(3000);
Environment.Exit(0);
https://blog.csdn.net/bruce135lee/article/details/78551532

浙公网安备 33010602011771号