Windows 2000 and the reboot command

MrSharky

Member
Jan 17, 2001
167
0
0
I'm looking for a way to reboot windows 2000 from a batch file. I thought there was a way to do this in win95/98/98se but wasn't sure about 2000 Pro and XP?? Anyone know of any such trick???
 

Muse

Lifer
Jul 11, 2001
41,365
10,481
136
Can't you just run a batch file with the line

reboot

in it? I think I read that recently.
 

MrSharky

Member
Jan 17, 2001
167
0
0
I've tried that.. and it seems to be a unrecongnized commmand... I thought there would have been that too....

'REBOOT' is not recognized as an internal or external command,
operable program or batch file.
 

AndyHui

Administrator Emeritus<br>Elite Member<br>AT FAQ M
Oct 9, 1999
13,141
17
81
Create a text file called restart.vbs

Put the following as the contents of the file:

set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^{ESC}ur{ENTER}"

Save the file and place it on the desktop or in the Quicklaunch or whatever. It will restart Win2K when you double click it.
 

Tanner

Diamond Member
Dec 15, 2001
7,391
0
0
doooooooooood! AndyHui U R HARDCORE PROGRAMMER MAN! :D

how'd U get the title "AT FAQ Man" :)

that's pretty tight! :D


God Bless

Tanner
 

NogginBoink

Diamond Member
Feb 17, 2002
5,322
0
0
Using the built-in command shutdown.exe would be much easier. (It may be a reskit utility under W2K. Not sure.)
 

SoulAssassin

Diamond Member
Feb 1, 2001
6,135
2
0


<< Using the built-in command shutdown.exe would be much easier. (It may be a reskit utility under W2K. Not sure.) >>



It is part of the RK.