Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Window Process check

by maggotbrain (Monk)
on Jun 24, 2012 at 01:44 UTC ( #978024=note: print w/ replies, xml ) Need Help??


in reply to Window Process check

Here is one way to do it using the Win32::Process::Info module:

use strict; use warnings; use Win32::Process::Info; my $pid = Win32::Process::Info->new (); my @info = $pid->GetProcInfo (); @info = grep { defined $_->{Name} && $_->{Name} =~ m/notepad/ } $pid->GetProcInfo (); # All processes with 'notepad' in name. for my $pid (@info){ print $pid->{"Name"}. " is running.\n"; }


Comment on Re: Window Process check
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-11-23 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (132 votes), past polls