Script Collection
WMI
Show all processes with IDs | Show all processes with IDs |
|
|
|
|
This script shows all running processes with their process IDs. It uses the wmi-class from Tim Golden. Please put it into the directory where you run this script from. import wmi c = wmi.WMI () for process in c.Win32_Process (): print process.ProcessId, process.Name |
|
| Last Updated ( Thursday, 02 February 2006 ) |
| < Prev | Next > |
|---|
Hint: For syntax highlighting and correct Python intendation place your code between html tags <pre> and </pre>.