home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / upsmon12.zip / upsminst.exe / xsdwn.cmd < prev   
OS/2 REXX Batch file  |  2002-01-24  |  837b  |  22 lines

  1. /* XSDWN.CMD */
  2.  
  3. /* Written by: Lone Peak Automation, LLC for UPS Monitor for OS/2 */
  4.  
  5. /* This is a sample external shutdown script for UPS Monitor
  6.     to use APM PowerOff included in XWorkplace */
  7.  
  8. /* Load REXXUTIL.DLL */
  9. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  10. call SysLoadFuncs
  11.  
  12. /* For explanation of the command below, see the XWorkPlace User Guide and Reference
  13.     under Appendices - WPS Setup Strings - XFldDesktop Setup Strings */
  14.  
  15. /* NOTE: Using APM PowerOff, as used below, will NOT allow automatic start-up of the
  16.              computer on line power restore. The computer power has to be turned on manually. */
  17.  
  18. /* shutdown OS/2, attempt APM Power off, auto close VIOs and allow no confirms */
  19. rc = SysSetObjectData("<WP_DESKTOP>", "XSHUTDOWNNOW=POWEROFF,AUTOCLOSEVIO,NOCONFIRM")
  20.  
  21. EXIT
  22.