Acer 4000M Laptop User Manual


 
GETSTAT Utility
The GETSTAT program can be used in a batch file to test for
the following:
Connection of an external monitor (/M)
Presence of an optional external expansion unit (/E)
Power source in use, external AC Adapter or internal
battery pack (/B)
Type of monitor in use, external or built-in
LCD (/V)
GETSTAT returns an error code to the batch file for it to
test.
GETSTAT Commands
To test for the presence of an optional external expansion
unit, use the command:
GETSTAT /M
If the monitor is connected,
GETSTAT exits with an
ERRORLEVEL = 1; if the external monitor is not connected,
GETSTAT exits with an ERRORLEVEL = 0.
To determine the current power source in use, use the
command:
GETSTAT /B
If the computer is currently powered by the Battery Pack,
GETSTAT exits with an ERRORLEVEL = 1; if the computer is
currently powered by the AC Adapter,
GETSTAT exits with an
ERRORLEVEL = 0.
To test which video device is in current use, use the
command:
GETSTAT Utility
Other Utilities 9-3