|
-
Jul 31st, 2006, 12:33 PM
#1
Thread Starter
Hyperactive Member
[1.0/1.1] Shutdown / Restart computer
Hi guys. I know a way to shutdown and restart a machine but it is not doing exactly what I want. It is bringing up a 'Remote Option Dialog' for the user to choose whether to shutdown or restart the machine or not. What I want is when this code executes, the machine shutdowns instantly without asking the user to choose an option. This is the simple way I know:
Shutdown: System.Diagnostics.Process.Start("Shutdown", "-i");
Anyone knows how to shutdown or restart a computer directly without bringing up this dialog box?
Jennife
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|