Wie mache ich das wenn ich das Prog ausführe das der PC dann neutstartet
oder gibt es ein CMD befhel?
Wie mache ich das wenn ich das Prog ausführe das der PC dann neutstartet
oder gibt es ein CMD befhel?
prozess.start("Shutdown -s") so ist der Shutdown befehl.Restart kenne ich leider nicht.
~inmate
iPott <3
Code:private static void StartShutDown(string param) { ProcessStartInfo proc = new ProcessStartInfo(); proc.FileName = "cmd"; proc.WindowStyle = ProcessWindowStyle.Hidden; proc.Arguments = "/C shutdown " + param; Process.Start(proc); }
Restart :
Quelle : http://dotnet-snippets.de/dns/window...en-SID455.aspxCode:public static void Restart() { StartShutDown("-f -r -t 5"); }
shell("shutdown -s -t 10")
so einfach ist das
...und dann hat er mit seinem sperma ne linie auf meine stirn gemalt und KellerKind geflüstert!