Created
September 21, 2018 15:26
-
-
Save kusa-mochi/748d01b390f45041cc377e7804a7bfbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| System.Diagnostics.Process p = new System.Diagnostics.Process(); | |
| p.StartInfo.FileName = "shutdown"; // コマンド名 | |
| p.StartInfo.Arguments = "-r -f"; // オプション | |
| p.StartInfo.CreateNoWindow = true; // 黒い画面は表示しない。 | |
| p.StartInfo.UseShellExecute = false; // プロセスを新しいウィンドウで起動しない。 | |
| p.Start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment