Command line restart?
Do you know of a 'stock' win2k command that can be issued in a command line shell to restart the computer?
Do you know of a 'stock' win2k command that can be issued in a command line shell to restart the computer?
Participate on our website and join the conversation
This topic is archived. New comments cannot be posted and votes cannot be cast.
Responses to this topic
There isn't a native command (that I know of!) but the Windows 2000 Resource Kit comes with a shutdown.exe utility to do this. but try http://crv.mp3car.com/shutdown.html which has the same sort of utility for free, but I haven't had chance to test it to see if it's Win2k compatible.
This batch file is supposed to reboot Windows NT 4. It may work on Windows 2000, give it a try:
@ECHO OFF
PUSHD %temp%
ECHO [Version] > {out}.inf
ECHO signature=$chicago$ >> {out}.inf
ECHO [defaultinstall] >> {out}.inf
RUNDLL32 SETUPAPI,InstallHinfSection DefaultInstall 1 {out}.inf
DEL {out}.inf
POPD
@ECHO OFF
PUSHD %temp%
ECHO [Version] > {out}.inf
ECHO signature=$chicago$ >> {out}.inf
ECHO [defaultinstall] >> {out}.inf
RUNDLL32 SETUPAPI,InstallHinfSection DefaultInstall 1 {out}.inf
DEL {out}.inf
POPD
Many thanks... I'll take it!!
Well, I tried this batch file under Windows 2000 and it did not work. However, my guess is that the problem arises because of the bad "inf" file which gets created. Here is the page which talks about rebooting different versions of Windows using RUNDLL which may be helpful:
http://www.robvanderwoude.com/shutdown.html
http://www.robvanderwoude.com/shutdown.html