I'm trying to do a shutdown/reboot at the end of my script but some of my Win95 clients return a script error. It worked on every computer I tested personally but when I put it in production, several users reported script errors. Can someone tell what I'm doing wrong?
;----------------------------------------------------------------------------------
$RC = MessageBox("PTF upgrade complete." + Chr(13) + "Computer will now REBOOT!","ShowCase PTF upgrade",16,60)
if @INWIN = 2 goto OS95REBOOT endif
$RC = Shutdown("", "System will REBOOT to enable new settings.", 30, 0, 1)
goto finish
:OS95REBOOT
RUN “RUNDLL32.EXE SHELL.DLL,RestartDialog”
SENDKEYS ({ENTER})
:finish
------------------
Laziness is the mother of invention
Les Ligetfalvy
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.