Download the source code (4 kb) for this article
An often asked question on the newsgroups is how to close a shelled process. The downloadable file
contains a project that does just that. There are, however, several caveats. It can't close invisible processes
(i.e. those that have no windows), if the program you shell out is basically a wrapper that executes yet another program, it
won't be able to shut that target program down either.
This program was originally written by Robert Shelton (thanks a lot!) at my continued nagging on the newsgroups
and was later tweaked by me for various purposes.