Seeing (& killing) Windows processes?
David Rushby
woodsplitter at rocketmail.com
Sat May 17 14:15:21 EDT 2003
Syver Enstad <syver-en+usenet at online.no> wrote in message news:<u1xyxk8ut.fsf at online.no>...
> edd at hotpop.com (Eddie) writes:
>
> > Hi all,
> >
> > Is it possible to check which windows processes (from other programs)
> > are running & kill them.
> > For example, if I want to see if the Internet Explorer process
> > (iexplore.exe) is running & kill it if it is.
>
> Install Mark Hammond's win32all package.
>
> Open the help file, see the performance monitor sample (win32pdh).
>
> Use OpenProcess with the pid that you get, then TerminateProcess with
> the handle that OpenProcess returned
This won't work on versions of Windows prior to the NT family, though.
I wrote an extension module to kill portably on both the Win9x family
and the NT family.
More information about the Python-list
mailing list