João Rodrigues wrote:
> Hello all! I'm trying to write a script that needs to check which processes
> are running under Windows (XP Pro, Home, whatever). The method I'm using is:
> 
>>>> process_list = os.popen('TASKLIST').read()
> 
> However, XP Home doesn't have the tasklist.exe tool so, this is kind of
> useless in that OS. Do you have any other methods I can use for this?

You can do this with WMI:

http://timgolden.me.uk/python/wmi_cookbook.html#running_processes

TJG
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to