#1
  1. No Profile Picture
    Web Geek
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    64
    Rep Power
    13

    Restarting Windows 2000 (command prompt or program)


    My goal is to find a way to restart Windows 2000 using the command prompt. I can either do it directly, or write a program that restarts the computer, and run it from the command prompt. Unfortunately, I don't know how to do either. Anyone know how to do either?

    -Nick
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Location
    Belgrade, Yugoslavia
    Posts
    7
    Rep Power
    0

    "net" and msdn


    I believe "net" command will do what you want. It's self-documenting, so give it a try.

    If it doesn't do what you want, browse MSDN for API call which allows rebooting a machine.


    To the moderators: This is more of a "user and administration" type of question, so I don't think it belongs in here too much.
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    Since you posted to the C languages forum, I'll assume you have access to a C or C++ compiler. The function that you are looking for is called ExitWindowsEx()

    Documentation about this function is here:
    http://msdn.microsoft.com/library/de...tdown_3ago.asp

IMN logo majestic logo threadwatch logo seochat tools logo