Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know that a program is running
Message
 
 
À
18/09/2006 12:12:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01154741
Message ID:
01154747
Vues:
10
>HI NAOMI,
> Exe name
>
>THANKS


I think there are better ways to find if the program is running, but you may also try this:
loCIMV2		= GetObject("winmgmts://localhost/root/cimv2")
loProcesses	= loCimv2.ExecQuery("SELECT * FROM Win32_Process WHERE Name LIKE 'vfp%'")
For Each objProcess in loProcesses
	objProcess.Terminate(0)
Next
This program terminates processes like VFP...

See also Re: Kill remote process Thread #1142445 Message #1142467
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform