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

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -