Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 cooling their heels in the Monastery: (8)
As of 2015-07-06 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls