Results 1 to 4 of 4

Thread: restarting of system

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    153

    Resolved restarting of system

    hi to all,
    i want to restart the system using The C#.Net. so, plz help me.


    thank u.

    with thanks and regards
    mmary
    Last edited by mmary; Apr 2nd, 2007 at 05:55 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: restarting of system

    You can use Process.Start to execute the shutdown.exe utility included with recent Windows versions or you can invoke the ExitWindowsEx API function. There are examples of both posted on the forum already. Also you can just get the commandline parameters from Windows Help & Support or from a Command Prompt window.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    153

    Re: restarting of system

    thank u for ur kind reply. thank u very much

    with thanks and regards
    mmary

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: restarting of system

    If you feel your problem is adequately resolved, please help us by marking it as such using the Thread Tools menu above the first post. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width