diff --git a/Form1.cs b/Form1.cs index 5e5c330..08185e7 100644 --- a/Form1.cs +++ b/Form1.cs @@ -33,7 +33,7 @@ private void button1_Click(object sender, EventArgs e) { using (Process process = new Process()) { - var psi = new ProcessStartInfo("shutdown", "/s /t 15"); + var psi = new ProcessStartInfo("shutdown", "/s /t 0"); psi.CreateNoWindow = true; psi.UseShellExecute = false; Process.Start(psi); @@ -48,7 +48,7 @@ private void timer1_Tick(object sender, EventArgs e) if (seconds == 0) { timer1.Stop(); - var psi = new ProcessStartInfo("shutdown", "/s /t 15"); + var psi = new ProcessStartInfo("shutdown", "/s /t 0"); psi.CreateNoWindow = true; psi.UseShellExecute = false; Process.Start(psi);