in reply to Re: Kill a process in Perl
in thread Kill a process in Perl

In fact, if you have the pid of the process that you want to kill, you can kill it with Win32::Process::KillProcess($pid, $exitcode), irrespcective of how the process was started.

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: Kill a process in Perl
by GrandFather (Saint) on Jul 11, 2009 at 06:31 UTC

    True, but finding the pid for a process is a right pita! Every time I want to do it (about 11 months apart on average) it seems to take an hour of trawling through MSDN to find what needs to be done. Then after 10 months I forget how to do it.


    True laziness is hard work