Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using SWbemObjectSet
Message
De
11/07/2007 16:24:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Using SWbemObjectSet
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
01239487
Message ID:
01239487
Vues:
148
I am trying to implement SWbemObjectSet to find out if my EXE process is running.
I am using two kinds of SELECT statements:
loProcesses = loCIMV2.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'exename'")
loProcesses = loCIMV2.ExecQuery("SELECT * FROM Win32_Process WHERE Name like 'exename%'")
Both work fine on my XP development box (or so I think), but second statement gives me this:
OLE IDispatch exception code 0 from SWbemObjectSet: Unspecified error
on Win2000 box. Any idea?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform