Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-13 Thread sebastien Pastor
I am using wmi and win32api. so it goes like : import wmi c = wmi.WMI () try: for p in c.Win32_Process (): if p.Name=="process.exe": print "killing " + str(p.ProcessId) + str(p.Name) win32api.TerminateProcess(handle,-1

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Gabriel Genellina
At Wednesday 13/7/2005 00:30, RayS wrote: >Ah, now I just found after searching for "CreateToolhelp32Snapshot" >http://sourceforge.net/mailarchive/message.php?msg_id=8291643 > >>Does anyone have a way to list/kill without the external process that > works in all 9x and XP? > > > >PDH will work fo

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread RayS
Ah, now I just found after searching for "CreateToolhelp32Snapshot" http://sourceforge.net/mailarchive/message.php?msg_id=8291643 Thanks Gabriel, Ray At 07:46 PM 7/12/2005, Gabriel Genellina wrote: >At Tuesday 12/7/2005 14:04, Ray Schumacher wrote: > >>I had looked over the methods to list/kill p

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Gabriel Genellina
At Tuesday 12/7/2005 14:04, Ray Schumacher wrote: >I had looked over the methods to list/kill processes on Win32, and could >not (yet) find a "pure" Python way to do it that works on 9x, since I >could not get win32pdhutil to work on 98. >So, I combined subprocess.py and pv.exe from >http://www.

[python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Ray Schumacher
I had looked over the methods to list/kill processes on Win32, and could not (yet) find a "pure" Python way to do it that works on 9x, since I could not get win32pdhutil to work on 98. So, I combined subprocess.py and pv.exe from http://www.xmlsp.com/pview/PrcView.zip and wrote a quick app to kil