How to get Windows system information?
Martin P. Hellwig
mhellwig at xs4all.nl
Fri Jan 13 02:42:20 EST 2006
dpickles at pacbell.net wrote:
> Does anybody know how to get the:
>
> Free hard disk space
> Amount of CPU load
> and Amount of RAM used
>
> on windows? I am making an artificial intelligence program that has
> "moods" based on how much stress the system is under, based on these
> parameters. I think it could possibly be done via COM. I am not looking
> for a cross-platform solution- just something that will work on
> Windows. Thank you for your help!
>
Have a look at WMI* , it's specifically designed to getthat kind of
stuff, there is also a python layer for WMI**.
* http://msdn.microsoft.com/library/en-us/wmisdk/wmi/wmi_reference.asp
** http://tgolden.sc.sabren.com/python/wmi.html
hth
--
mph
More information about the Python-list
mailing list