Title: RE: Getting a list of processes

The Microsoft Windows NT Resource Kit Supplement 4 has a VBScript version of ps in it.  It could probably help you out (if you have access to it).

I publish the code to this list, but I imagine it would violate some sort of Microsoft copyright.
I will post the output, however:

C:\NTReskit>cscript ps.vbs
Microsoft (R) Windows Script Host Version 5.1 for Windows
Copyright (C) Microsoft Corporation 1996-1999. All rights reserved.


  PROCESSID      NAME           EXECUTABLEPATH

  0              System Idle    (null)
  2              System         (null)
  20             smss.exe       C:\WINNT\System32\smss.exe
  24             Unknown        (null)
  34             winlogon.exe   C:\WINNT\system32\winlogon.exe
  41             services.exe   C:\WINNT\system32\services.exe
  44             lsass.exe      C:\WINNT\system32\lsass.exe
  66             spoolss.exe    C:\WINNT\system32\spoolss.exe
  69             MAPISP32.EXE   C:\Program Files\Common Files\System\MA
  86             RpcSs.exe      C:\WINNT\system32\RpcSs.exe
  91             TpChrSrv.exe   C:\WINNT\System32\TpChrSrv.exe
  96             DkService.exe  C:\PROGRA~1\EXECUT~1\DISKEE~1\DkService
  105            PGPsdkServ.exe C:\WINNT\System32\PGPsdkServ.exe
  107            cscript.exe    C:\WINNT\system32\cscript.exe
  111            pstores.exe    C:\WINNT\System32\pstores.exe
  114            MSTask.exe     C:\WINNT\system32\MSTask.exe
  120            SUSS.EXE       C:\NTReskit\SUSS.EXE
  125            winmgmt.exe    C:\WINNT\System32\WBEM\winmgmt.exe
  133            PGPservice.exe C:\Program Files\Network Associates\PGP
  141            nddeagnt.exe   C:\WINNT\System32\nddeagnt.exe
  143            loadwc.exe     C:\WINNT\System32\loadwc.exe
  146            Explorer.exe   C:\WINNT\Explorer.exe
  147            SysTray.Exe    C:\WINNT\System32\SysTray.Exe
  159            PGPtray.exe    C:\Program Files\Network Associates\PGP
  162            CPal.exe       C:\Program Files\CookiePal\CPal.exe
  170            OUTLOOK.EXE    C:\PROGRA~1\MICROS~2\Office\OUTLOOK.EXE
  183            MMC.EXE        C:\WINNT\System32\MMC.EXE
  191            cmd.exe        C:\WINNT\System32\cmd.exe
  199            UEDIT32.EXE    C:\Program Files\UltraEdit\UEDIT32.EXE
  209            DfrgNTFS.exe   C:\Program Files\Executive Software\Dis

C:\NTReskit>

-----Original Message-----
From: Vince Wilding [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 9:20 AM
To: [EMAIL PROTECTED]
Subject: Getting a list of processes


Basically, I'm trying to emulate Task Manager and get a list of all
running processes.  I may even want to kill a few. I've tried shelling
to CygWin's "ps", but that only show's the ps process itself.

Any Idea's?
--
Vince Wilding, Web Wrangler, MetaData Maven, Perl Hacker Wannabe
email:Vince (at) VinceWilding.com  http://www.VinceWilding.com
God made the Cat so man could caress the tiger...
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to