IBM L40 SX Quick Reference page 155

Personal system/2
Hide thumbs Also See for L40 SX:
Table of Contents

Advertisement

#E.2.2 Sample Coding
#Note:
It is recommended that a subdirectory named L40SXUT be created on
#
the hard disk and the batch file you created be placed on the
#
subdirectory and the path to it be set.
#The following shows the contents of the SETUPPWR.CMD file.
#coding resets the operational features to the optimum rate of battery
#power consumption when the computer is operating only with the
#Rechargeable Battery; resets the operational features to the maximum rate
#of power when using the AC Adapter or the Car Battery Adapter.
+------------------------------------------------------------------------+
¦
¦
@Echo off
EXT_PWR
If ERRORLEVEL 2 goto Error
If ERRORLEVEL 1 goto External_Power
rem
If ERRORLEVEL 0 goto Battery_Power
:Battery_Power
call TRAVEL
goto Done
:External_Power
call DEFAULT
goto Done
:Error
Echo
"Error on EXT_PWR.EXE"
:Done
¦
¦
+------------------------------------------------------------------------+
PS/2 Model L40 SX Quick Reference
Sample Coding
¦ Copyright IBM Corp. 1991
E.2.2 - 1
This sample
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦
¦

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents