John Serink wrote: > Use the appropriate WMI classes with the Win32::OLE module.
You should be able to find something useful here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp ... Power Classes The Power subcategory groups classes that represent power supplies, batteries, and events related to these devices. Class Description Win32_AssociatedBattery Relates a logical device and the battery it is using. Win32_Battery Represents a battery connected to the computer system. Win32_CurrentProbe Represents the properties of a current monitoring sensor (ammeter). Win32_PortableBattery Represents the properties of a portable battery, such as one used for a notebook computer. Win32_PowerManagementEvent Represents power management events resulting from power state changes. Win32_UninterruptiblePowerSupply Represents the capabilities and management capacity of an uninterruptible power supply (UPS). Win32_VoltageProbe Represents the properties of a voltage sensor (electronic voltmeter). >>From: On >>Behalf Of andrew Black >>Hi >>Does anyone know if it is possible to get hold of the battery >>information on an XP laptop via perl (or any other prog >>language) Looking for whether on AC power / level of the battery etc _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
