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
Wrap
OS/2 REXX Batch file
|
1999-07-28
|
1KB
|
41 lines
@rem CpqDown.cmd
@rem
@rem This command script is called by the Compaq System Shutdown Service
@rem whenever a system shutdown has occured. One parameter is passed in
@rem to signal if the shutdown is NORMAL or an ABORT.
@rem
@if "%1%" == "ABORT" goto abortshut
@if "%1%" == "NORMAL" goto normalshut
@echo %0%: argv[1]=%1% not recognized
@goto end
@rem
@rem ABORT Shutdown Action
@rem
@rem This command stream is executed when a critical event has been detected
@rem by the Health driver where system power will be shut off. This command
@rem stream must complete within two minutes.
@rem
:abortshut
@echo %0%: processing abort shutdown
@rem <commands go here>
@goto end
@rem
@rem NORMAL Shutdown Action
@rem
@rem This command stream is executed when a normal shutdown sequence has
@rem been detected. A normal shutdown event is initiated by the user from
@rem the start menu shutdown applet, by a user application rebooting the
@rem system (i.e. when installing software), by the sysdown command, or
@rem the power button being pushed. This script has an infinite amount
@rem of time to gracefully terminate any active applications.
@rem
:normalshut
@echo %0%: processing normal shutdown
@rem <commands go here>
@goto end
:end
@echo %0%: exiting