process - Get list of names of running processes in python -
i need list of names of running processes in python. m doing psutil.process_iter in for loop. need faster way check if process running. if possible, rather list appreciate tuple. response.
you can use wmi, there example in python using wmi module:
http://timgolden.me.uk/python/wmi/cookbook.html
import wmi c = wmi.wmi () process in c.win32_process (): print process.processid, process.name
Comments
Post a Comment