如何在 Windows 中获取电池信息? [英] How do I get battery information in windows?

查看:22
本文介绍了如何在 Windows 中获取电池信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我这里有两台笔记本电脑.一个运行 Vista,另一个运行 Windows 7.我需要了解这两种电池的规格,我该怎么做?

我问的原因是我想知道它们是锂离子还是其他东西.其他类型的电池如果插电时间过长,可能会对充电容量产生不利影响.

解决方案

您可以使用 WMIWin32_Battery 类.它有一个名为 Chemistry 的属性,其中包含此信息.

更新:

实际上,还有 Win32_PortableBattery,这将更适合笔记本电脑电池.它们都继承自 CIM_Battery 类.>

I have two laptops here. One is running Vista, the other Windows 7. I need to get the specifications on the batteries in both, how do I go about that?

The reason I'm asking is that I'd like to know if they're lithium ion or something else. Supposedly other types of batteries may have adversely affected charge capacities if left plugged in for too long.

解决方案

You could use WMI and the Win32_Battery class. It has a property called Chemistry that has this information.

UPDATE:

Actually, there is also Win32_PortableBattery, which would be more appropriate for a laptop battery. They both inherit from the CIM_Battery class.

这篇关于如何在 Windows 中获取电池信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆