Restart computer using asp.net c# language

asp.net , csharp Hong Kong SAR
  • 13 years ago

    Hi,

       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....

     
     

  • 13 years ago

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

  • 13 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).

Contribute

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.

“There are 10 types of people in the world, those who can read binary, and those who can't.”