hello, I wonder if there's a fast way to test if a process is running.
these are my experiences till so far: 1. win32pdh, not usefull, because it shows ths status of some ancient history 2. wmi, VERY SLOW: 1500 .. 2000 msec import wmi w = wmi.WMI() processes = w.instances('Win32_Process') instances = [] for process in processes : if process.Name.lower() == name : return process.ProcessId 3. Autoit, very fast: 10..20 msec autoit = win32com.client.Dispatch ( "AutoItX3.Control" ) print autoit.ProcessExists ( process ) Are the better (faster) ways, without the use of AutoIt ? Now this raises another question (please forgive my ignorance): Why not use AutoIt always, instead of all the win32 libraries ? AFAIK, the advantages of AutoIt: - seems to be very fast - is very well documented - can be tested in a AutoIt friendly editor (Scite) AFAIK the disadvantages: - when distributing, you must add an extra file thanks, Stef Mientki _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32