Re: Shutdown computer (from command line?)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"_Z" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23SFJr2BcJHA.1184@xxxxxxxxxxxxxxxxxxxxxxx
"Alain Dekker" wrote:
Hi,
I know about the command prompt "shutdown" command to shut down a PC.
If I use the setting below, it shuts down the PC in 10 seconds
with a nice message:
shutdown -s -t 10 -c "This is a nice message about why
I'm shutting you down"
The problem is that my computer just powers down and what I'd like
to do is get that message at the end which says
"It is now safe to turn your PC off".
Any idea how I achieve that?



"Alain Dekker" wrote:
... _Z gave a facetious reply which was amusing but was not relevant.
I still haven't found out how to get Windows to give the
"Safe to switch off..." message but further
investigations appear to have tracked it down to a feature of the
motherboard called ACPI. If the motherboard is non-ACPI, Windows displays
this message, otherwise it doesn't.
There does not appear to be an easy way to get Windows to display the
message on ACPI motherboards...

Alain,
Sure there is.
Why not just write a VBscipt to display an Alert that spoofs a
shutdown alert, complete with a script timeout, and, if necessary,
actually launch shutdown.exe?



The problem with any script like that, is XP is still running while
giving the message, and you still shouldn't cut the power until
it quits. With the safe to shut down message the OP was referring
to, you could kill power immediately because the OS had already
terminated.


.



Relevant Pages

  • Re: Adding CMD to right click on desktop
    ... You could also set the Power Options to do "Shutdown" when you press Power Button. ... Having a command prompt may or may not make a difference, but it would be nice to know. ... I could program in a batch file to run the shutdown command to perform a clean restart. ... adding static context menu items to the Desktop is not possible in Windows 9x/XP. ...
    (microsoft.public.windowsxp.general)
  • Re: Shutdown computer (from command line?)
    ... "Alain Dekker" wrote: ... I know about the command prompt "shutdown" command to shut down a PC. ... I still haven't found out how to get Windows to give the ...
    (microsoft.public.windowsxp.general)
  • Re: Windows home XP fails to initialize
    ... Windows quirks and lack of productivity, not by choice but because I ... Restart the PC and as it restarts press F8 about once every second ... the Command Prompt will appear. ... This will bring up the shutdown functions. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Shutdown computer (from command line?)
    ... temporarily fool Windows into thinking its a non-ACPI motherboard ... Older APM machines will show that during a Shutdown. ... display the "It is now safe to turn your PC off" message? ... I know about the command prompt "shutdown" command to shut down a PC. ...
    (microsoft.public.windowsxp.general)
  • Re: Searching tool which shutdown the computer at a certain time
    ... There's actually a way to do it in just about any version of Windows. ... go to 'Scheduled Tasks' and ... (choose when you'd like to have your computer shutdown). ... This will bring up the Command Prompt. ...
    (microsoft.public.windowsxp.help_and_support)