Exemple #1
0
 public static void Shutdown(int delaySeconds = 0)
 {
     Cmd.RunClose("shutdown", "-s -f -t " + delaySeconds);
 }
Exemple #2
0
 public static void Shutdown()
 {
     Cmd.RunClose("shutdown", "-s -f -t 0");
 }
Exemple #3
0
 public static void Restart(int delaySeconds = 0)
 {
     Cmd.RunClose("shutdown", "-r -f -t " + delaySeconds);
 }
Exemple #4
0
 public static void Restart()
 {
     Cmd.RunClose("shutdown", "-r -f -t 0");
 }