Texas Instruments TravelMate 5000 Series User Reference Manual page 143

Notebook computer
Hide thumbs Also See for TravelMate 5000 Series:
Table of Contents

Advertisement

GETSTAT Utility
@echo off
rem Version 2.02
rem ================================================
rem check to see which TI system program is running on
rem ================================================
getstat /s
if ERRORLEVEL 255 goto unknown
if ERRORLEVEL 4 goto yes_tm5
if ERRORLEVEL 3 goto yes_tm4m
if ERRORLEVEL 2 goto yes_tm4e
if ERRORLEVEL 1 goto yes_tm4
:unknown
echo The system type is unknown.
goto exit_all
:yes_tm5
echo The system is a Texas Instruments TravelMate 5000.
rem ================================================
rem check the number of batteries on TM5000
rem ================================================
getstat /n
if ERRORLEVEL FF goto batunk
if ERRORLEVEL 2 goto tm5_2bat
if ERRORLEVEL 1 goto tm5_1bat
if ERRORLEVEL 0 goto tm5_0bat
:batunk
echo Unable to detect the number of batteries.
goto tm5_dock
:tm5_2bat
echo The system contains 2 batteries.
goto tm5_dock
:tm5_1bat
echo The system contains 1 battery.
goto tm5_dock
:tm5_0 bat
echo The system contains no batteries.
rem ================================================
rem check to see if an expansion station is attached to the TM5000
rem ================================================
:tm5_dock
getstat /e
if ERRORLEVEL 4 goto yes_ez+
if ERRORLEVEL 3 goto yes_ez
echo No expansion station attached
goto chk_batt
:yes_ez+
echo The DockMate Plus docking station is attached
7-4 Other Utilities

Advertisement

Table of Contents
loading

Table of Contents