QUOTE (johnhc @ Jun 21 2008, 11:28 PM)

I built a Batch file with the following:
CODE
Shutdown /r /f /t 10
WPI indicated it worked saying a code of 1 was returned, but my system did not restart. I tried this command in a command prompt and it worked.
Obviously, I need some assistance.
Thanks.
Enjoy, John.
The way I use the reboot command is in a 'Reboot.cmd' file.
I put an extra catagorie called 'Extra' at the end of all my software catagories.
(This is only the final reboot when everything is installed)
Click to view attachmentReboot.cmd=
@ECHO OFF
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WXP.ico set CDROM=%%i:
shutdown.exe -r -f -t 20 -c
exit
config.js=
prog[pn]=['Reboot XP'];
ordr[pn]=[200];
desc[pn]=['];
uid[pn]=['REBOOTXP'];
dflt[pn]=['yes'];
cat[pn]=['Extra'];
forc[pn]=['no'];
configs[pn]=['yes'];
gcond[pn]=['FileExists(\'%programfiles%\\\')'];
cmd1[pn]=['%cdrom%\\install\\Progs\\Reboot\\Reboot.cmd'];
pn++;
This way you can also choose easy to restart windows or not.
Since I do it this way I had never issues with the reboot command.
(I use the %cdrom% variable because I use WPI in a standalone disc for software installations, so my paths are maybe a little bit different)
Hope this is usefull, DJPro