How to ShutDown PC Using C#

Kundnani.Rt
Posted by Kundnani.Rt under C# category on | Points: 40 | Views : 2082
using System;

public static void Main()
{
ProcessStartInfo startinfo = new ProcessStartInfo("shutdown.exe", "-s");
Process.Start(startinfo);
}

Comments or Responses

Login to post response