home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
upsmon12.zip
/
upsminst.exe
/
xsdwn.cmd
< prev
Wrap
OS/2 REXX Batch file
|
2002-01-24
|
837b
|
22 lines
/* XSDWN.CMD */
/* Written by: Lone Peak Automation, LLC for UPS Monitor for OS/2 */
/* This is a sample external shutdown script for UPS Monitor
to use APM PowerOff included in XWorkplace */
/* Load REXXUTIL.DLL */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
/* For explanation of the command below, see the XWorkPlace User Guide and Reference
under Appendices - WPS Setup Strings - XFldDesktop Setup Strings */
/* NOTE: Using APM PowerOff, as used below, will NOT allow automatic start-up of the
computer on line power restore. The computer power has to be turned on manually. */
/* shutdown OS/2, attempt APM Power off, auto close VIOs and allow no confirms */
rc = SysSetObjectData("<WP_DESKTOP>", "XSHUTDOWNNOW=POWEROFF,AUTOCLOSEVIO,NOCONFIRM")
EXIT