home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2000 April / VPR0004B.BIN / DRIVER / COMPAQ / SP12164 / sp12164.exe / sysmgmt / cpqshut.cm_ / cpqshut.cmd
OS/2 REXX Batch file  |  1999-07-28  |  1KB  |  41 lines

  1. @rem  CpqDown.cmd
  2. @rem
  3. @rem  This command script is called by the Compaq System Shutdown Service
  4. @rem  whenever a system shutdown has occured.  One parameter is passed in
  5. @rem  to signal if the shutdown is NORMAL or an ABORT.
  6. @rem
  7. @if "%1%" == "ABORT" goto abortshut
  8. @if "%1%" == "NORMAL" goto normalshut
  9. @echo %0%: argv[1]=%1% not recognized
  10. @goto end
  11.  
  12. @rem
  13. @rem  ABORT Shutdown Action
  14. @rem
  15. @rem  This command stream is executed when a critical event has been detected
  16. @rem  by the Health driver where system power will be shut off.  This command
  17. @rem  stream must complete within two minutes.
  18. @rem
  19. :abortshut
  20. @echo %0%: processing abort shutdown
  21. @rem <commands go here>
  22. @goto end
  23.  
  24. @rem
  25. @rem  NORMAL Shutdown Action
  26. @rem
  27. @rem  This command stream is executed when a normal shutdown sequence has
  28. @rem  been detected.  A normal shutdown event is initiated by the user from
  29. @rem  the start menu shutdown applet, by a user application rebooting the
  30. @rem  system (i.e. when installing software), by the sysdown command, or
  31. @rem  the power button being pushed.  This script has an infinite amount
  32. @rem  of time to gracefully terminate any active applications.
  33. @rem
  34. :normalshut
  35. @echo %0%: processing normal shutdown
  36. @rem  <commands go here>
  37. @goto end
  38.  
  39. :end
  40. @echo %0%: exiting
  41.