System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo stratInfo = new System.Diagnostics.ProcessStartInfo();
stratInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
stratInfo.FileName = "cmd.exe";
stratInfo.Arguments = "/C shutdown -f";
process.StartInfo = stratInfo;
process.Start();
0 yorum:
Yorum Gönder