Acer 4000M Laptop User Manual


 
@echo off
rem version 1.0
25rem ========================
rem check the battery status
rem ========================
getstat /b
if ERRORLEVEL 1 goto yes_batt
echo The unit is currently powered by external power source
goto chk_video
:yes_batt
echo the unit is currently powered by the battery
:chk_video
rem ==============================
rem check the video display status
rem ==============================
getstat /v
if ERRORLEVEL 2 goto yes_sim
if ERRORLEVEL 1 goto yes_mon
echo the video is currently on the LCD
goto chk crt
:yes_mon
echo the video is currently on the external monitor
goto chk crt
:yes_sim
echo the video is currently on SimulSCAN
:chk_crt
rem =============================
rem check the presence of monitor
rem =============================
getstat /m
if ERRORLEVEL 1 goto yes_crt
echo An external monitor is not conected to the system
goto exit_all
:yes_crt
echo An external monitor is connected to the system
:exit_all
GETSTAT Utility
Other Utilities 9-5