using System.Diagnostics;
Process MyProcess = new Process(); or System.Diagnostics.Process p = new System.Diagnostics.Process();
MyProcess.StartInfo.UseShellExecute = false;
MyProcess.StartInfo.CreateNoWindow = true/false;
MyProcess.StartInfo.FileName = "cmd";
MyProcess.StartInfo.Arguments = "shutdown /s";
MyProcess.Start();
MyProcess.WaitForExit();
MyProcess.Exit();
Process MyProcess = new Process();
MyProcess.StartInfo.UseShellExecute = false;
MyProcess.StartInfo.CreateNoWindow = true/false;
MyProcess.StartInfo.FileName = "cmd";
MyProcess.StartInfo.Arguments = "shutdown /s";
MyProcess.Start();
MyProcess.WaitForExit();
MyProcess.Exit();
Copyright © 2026, NextGenUpdate.
All Rights Reserved.