C# 关机

                    System.Diagnostics.Process bootProcess = new System.Diagnostics.Process();
                    bootProcess.StartInfo.FileName = "shutdown";
                    bootProcess.StartInfo.Arguments = "/s /t 30";
                    bootProcess.Start();

posted @ 2010-11-12 14:58  张土土  阅读(180)  评论(0编辑  收藏  举报