Does anyone know how to get the battery status in windows? On Linux it is as simple as acpi -b but in Windows this simple task seems impossible.

powercfg -energy can get all kinds of all information, but wont output something as simple as the charge level. I just need something simple which I can use for some scripts.

link|improve this question
feedback

1 Answer

You can use WMIC, e.g. WMIC Path Win32_Battery for a full table of info, or WMIC PATH Win32_Battery Get EstimatedChargeRemaining etc to get a specific detail

link|improve this answer
Perfect. Thanks! – PSYU Sep 8 '11 at 14:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.