.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:
I worked C#.Net, but i was not familiar this thing. you told a great technique.
Shopping Cart
Post a Comment
<< Home