Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot close running foxpro program
Message
 
 
À
10/01/2007 19:59:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01184418
Message ID:
01184528
Vues:
24
>For some reason I cannot close my running program. I tried pressing CTRL+ALT+DEL, but there's no VFP6.0 in the list.
>
>How to close this without restarting the pc?

Put this program on your Desktop KillProcess.prg
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
Courtesy by Hugo Runea.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform