using System;
using System.Diagnostic;
namespace ShutDownComputer
{
class Program
{
static void Main(string []args)
{
//创建一个资源管理器对象
Process process = new Process()
//设置要启动的应用程序
process.StartInfo.FileName= "shutdown";
//关机
process.StartInfo.Arguments="-s -t 0";
process.Start();
}
}