Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

shutdown system C#

var psi = new ProcessStartInfo("shutdown","/s /t 0");
psi.CreateNoWindow = true;
psi.UseShellExecute = false;
Process.Start(psi);
// to avoid creating window
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shutdown #system
ADD COMMENT
Topic
Name
3+3 =