|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
"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. |
|
#3
|
||||
|
||||
|
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/d...utdown_3ago.asp |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Restarting Windows 2000 (command prompt or program) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|