in reply to Windows process
For more info on WMI and Win32_Process see Microsoft's documentaionuse Win32::OLE; my $wmi = Win32::OLE->GetObject("winmgmts:") or die "wmi connect failed!"; my $P = $wmi->ExecQuery("SELECT * FROM Win32_Process") or die "Win32_Process connect failed!"; foreach my $p (in $P) { print join(',' , $p->ProcessId, $p->Name, $p->CommandLine)."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Windows process
by djberg96 (Acolyte) on Sep 17, 2004 at 03:12 UTC |