When I shut down my Windows XP Pro, SP3 machine – or worse, when my UPS
shuts the computer down after a power outage, I sometimes get the message that
Windows is closing a program. If it doesn’t close the program, the progress bar
stops at the end and it waits for me to do something. Now, I may have left the
room or the UPS may need to shut down in my absence. How can I get it to shut
down, regardless of whether the program successfully closed, without my
intervention?
In this excerpt from
Answercast #92 I look at the difficulties involved in shutting down Windows
if certain programs are opened, and perhaps unsaved, and won’t let the
shut-down process complete.
]]>
<
You can change the power settings to force the operating system to hibernate instead of shutting down. Check the UPS software; or make changes from within Windows power options.
To build on Mack’s comments, check the documentation and or software that came with the UPS. It might have the ability to shut down the computer in the event of a power failure.
Erm… you didn’t answer the question !
I have a little “ShutDown” batch file that I use. After doing other things (e.g. back-ups), it finishes with:-
——-[ ShutDown.bat ]——–
REM These commands shut down the computer – depends on version and set-up.
rem C:\WINDOWS\RUNDLL32.EXE user.exe,exitwindows
REM or try:-
rem C:\WINDOWS\rundll32.exe shell32.dll,SHExitWindowsEx 9
REM Or this:-
rem Start Shutdown
REM or this:-
C:\WINDOWS\System32\Shutdown -s -f -t 0
————[ End ]———————-
It’s the last command that currently works on my Win7 computer.
However, your OP wants this to run when he is not there. I don’t know what his system is, but perhaps his UPS calls some shutting down routine, and he could change it for this one ?