How do I close a specific application via python (windows)

Mark Hammond MarkH at ActiveState.com
Sat Jun 23 21:08:49 EDT 2001


Christian Reyes wrote:

> I've been looking at the win32api.openprocess method and that seems to give
> me hooks to killing an app.
> But my problem is that openprocess needs a processID.
> 
> How do i get the process id of an application?
> 

Check out killProcName.py in the win32\scripts directory.

Mark.




More information about the Python-list mailing list