程序异常重启代码

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

posted @ 2018-09-25 16:37  风影我爱罗  阅读(208)  评论(0)    收藏  举报