Restart computer using c# language , csharp Hong Kong SAR
  • 12 years ago


       I want to know how to restart computer in c# coding in ASP.NET...

       I have tried in windows application using commandline, like this...

     process1 = System.Diagnostics.Process.Start("cmd.exe", @"/c shutdown -r -f -t 120");

       but i dont know how to use it in ASP.NET s aspx files....


  • 12 years ago

    why do you want to do this in particularly ASP.NET which is used to web application 

  • 12 years ago

     I know how to do in windows & console Applications......I want to know How to do in ASP.NET web application......Since according to my project if it is in web application....It will be quite useful....

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” - Antoine de Saint Exupéry