Page 1 sur 1

Comment lister les processus actifs

MessagePublié: 30 Mai 2006 à 14:04
par Stephane Maillard
Code : Tout sélectionner
   Dim svc As Variant
   Dim sQuery As String
   
   Set svc = GetObject("winmgmts:root\cimv2")
   sQuery = "select * from win32_process"
   Forall oproc In svc.execquery(sQuery)
      Print oproc.Name & " = " & oproc.ExecutablePath
   End Forall
   Set svc = Nothing
   Exit Sub


Testé sous Windows 2000.

MessagePublié: 30 Mai 2006 à 18:53
par Michael DELIQUE
Testé sous Win XP SP2