bobbruce0584 has asked for the wisdom of the Perl Monks concerning the following question:
-------------------------------------------------------------------------------------------------------- #!perl use Win32::OLE qw(in); if ( $ARGV[0] ) { $strComputer = $ARGV[0]; } else { $strComputer = "."; } $strComputer = '.'; $objWMIService = Win32::OLE->GetObject('winmgmts:\\\\' . $strComputer +. '\\root\\CIMV2'); $colItems = $objWMIService->ExecQuery('SELECT * FROM Win32_Process WHE +RE Name = \'explorer.exe\'', undef, 48); foreach my $objItem (in $colItems) { print 'PageFileUsage: ' . $objItem->PageFileUsage, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help for a beginner
by agianni (Hermit) on Mar 02, 2007 at 19:04 UTC | |
by Anonymous Monk on Mar 02, 2007 at 19:24 UTC | |
by bobbruce0584 (Initiate) on Mar 02, 2007 at 19:27 UTC | |
by agianni (Hermit) on Mar 02, 2007 at 19:37 UTC | |
by Fletch (Bishop) on Mar 02, 2007 at 20:32 UTC | |
by GrandFather (Saint) on Mar 02, 2007 at 20:38 UTC |