in reply to Re: End a process in the Task manager
in thread End a process in the Task manager

Thanks for the reply. Can I install WIN32::Process::Info and Win32::Process::KillProcess using ppm? if so please give me the repository url from where i can install it.
  • Comment on Re^2: End a process in the Task manager

Replies are listed 'Best First'.
Re^3: End a process in the Task manager
by BrowserUk (Patriarch) on Jun 03, 2005 at 12:55 UTC

    ppm> search Win32::Process::Info Searching in Active Repositories 1. Win32-Process-Info [1.005] Get information on arbitrary processes + in Windows NT ppm> describe 1 ==================== Package 1: Name: Win32-Process-Info Version: 1.005 Author: Tom Wyant (wyant@cpan.org) Title: Win32-Process-Info Abstract: Get information on arbitrary processes in Windows NT Location: bribes Available Platforms: 1. MSWin32-x86-multi-thread 2. MSWin32-x86-multi-thread-5.8 ==================== ppm> rep describe bribes Describing Active Repository 8: Name: bribes Location: http://www.bribes.org/perl/ppm/ Type: Webpage

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
      Thank u very much. I installed Win32::Process::Info. now if I try to kill a process, as follows
      $pid = 1768; Win32::Process::KillProcess($pid,0);
      I get an error
      Undefined subroutine &Win32::Process::KillProcess called at C:\perlscr +ipts\pidin fo.pl line 51, <DATA> line 164.
      how do I kill the process?

        Try

        kill 2, 1768;

        See kill

        FYI. Win32::Process is a separate module from Win32::Process::Info that would require you to find and install it before you can use it. However, Perl's built-in kill function works fine for this.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
        "Science is about questioning the status quo. Questioning authority".
        The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.