Shutdown or Restart the Computer Using C#

November 5, 2008 – 3:00 pm

This post was moved to:

http://codehill.com/2009/01/shutdown-or-restart-the-computer-using-c/

Note: I moved all the programming posts to my other blog: CodeHill. As the name implies, CodeHill is dedicated to programming, please check it out and if you like it consider subscribing to the RSS feed. Sorry for the inconvenience.

  • Share/Bookmark
  1. 6 Responses to “Shutdown or Restart the Computer Using C#”

  2. I TRIED taht code but it dosn’t run correct
    it’s open program again not shutdown computer
    pleas help me to resolve this pproblem
    thank you

    By please help me on Dec 8, 2008

  3. I tried this code in Windows XP and Vista before posting it and it worked fine. But give me 2 days to get back home and try it out again. I’m in Dubai for the holidays and I have with me my Linux netbook only. If you could please tell me which Windows you are using it will help.

    By Amgad Suliman on Dec 8, 2008

  4. windows that i using is xp sp3
    if you could give me source code ,it’s be better
    thank you
    osama hemdan
    egypt

    By please help me on Dec 8, 2008

  5. I placed a link to the Visual Studio project at the bottom of the post, hope its useful.

    By Amgad Suliman on Dec 9, 2008

  6. System.Diagnostics.Process.Start(”shutdown”, “/s”);

    try this code by putting button click event
    it will shutdown the local computer

    By Arun Kumar Gupta on Oct 14, 2009

  7. Okay, so my dispatches go by courier snail. ,

    By Loy35 on Oct 23, 2009

Post a Comment