Restart PC or Laptop
Click Button Restart Your Working PC or Laptop in WinForm Diagnostics in Asp.Net C#.
Download Coding
Download
C# CODING
Next - Add - Namespaces - using System.Diagnostics; & ShutDown.exe
Click Button Restart Your Working PC or Laptop in WinForm Diagnostics in Asp.Net C#.
Download Coding
Download
C# CODING
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Diagnostics;
public partial class Restarts : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
ProcessStartInfo restart = new ProcessStartInfo("shutdown.exe", "-r");
Process.Start(restart);
}
}
First Add - New Webform - Select Button From
ToolBox
Next - Add - Namespaces - using System.Diagnostics; & ShutDown.exe
Next - Run[F5] - Click Restart Button - Restart system