public class Test
{
 public static void Main()
 {
  
  ProcessStartInfo startinfo = new ProcessStartInfo();   
  startinfo.UseShellExecute = false;
  startinfo.RedirectStandardOutput = true;
  startinfo.CreateNoWindow = false;
  startinfo.FileName = "shutdown.exe";
  startinfo.Arguments = "/r";
//set other parameter can realize shutdown......
  Process.Start(startinfo);
 }
}

相关文章:

  • 2021-09-15
  • 2021-04-15
  • 2021-11-26
  • 2022-02-10
  • 2022-01-20
  • 2021-11-22
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2021-05-30
  • 2021-10-19
  • 2021-11-12
  • 2021-11-20
  • 2022-01-01
  • 2021-12-23
相关资源
相似解决方案