Tuesday, June 20, 2006

.NET FAQ: How to Shutdown My Computer Programatically in C#?

Use .NET Process class. Make this call to its Start method:
System.Diagnostic.Process.Start("shutdown.exe", "-s -f -t 00");
For more info on how to use .NET Process class, check this out: click here.

1 Comments:

Blogger Unknown said...

I worked C#.Net, but i was not familiar this thing. you told a great technique.
Shopping Cart

3:02 AM  

Post a Comment

<< Home