Sign-in / Sign-up
Your question

Shutdown Script

Tags:
  • Configuration
  • Shutdown Script
  • Shutdown
  • Windows XP
Last response: in Windows XP
July 16, 2010 3:41:59 AM

Hello,

i am trying to run my application after user commands, shutdown using shutdown scripts. here i need to know what is been commanded(shutdown or restart). so is there anyway to get this data. thanks in advance

More about : shutdown script

July 16, 2010 10:24:55 PM

Well if im reading this correctly, you have confidence that it will do one or the other. So my suggestion would be to run the scripts and see what happens. If it restarts, then you know something is wrong in the script (if it is a full and final shutdown that your looking for).

This should get you the data your looking for.
m
0
l
July 17, 2010 1:44:42 AM

naveengowdar said:
Hello,

i am trying to run my application after user commands, shutdown using shutdown scripts. here i need to know what is been commanded(shutdown or restart). so is there anyway to get this data. thanks in advance


The shutdown script calls Shutdown.exe, and if a "turn off the computer" was selected it passes -s -t 0 to shutdown.exe/

If the shutdown script calls for a restart, it passes -r -t 0 to shutdown.exe.
m
0
l