Nov
21
2009
Visual foxpro: Terminate active windows application
tags: Programming, Tips & Trick, visual foxproHere is some code to terminate active windows application with visual foxpro :
oWMI = GETOBJECT(’winmgmts://’)
cQuery = “select * from win32_process where name=’calc.exe’”
oResult = oWMI.ExecQuery(cQuery)
? oResult.Count
FOR EACH oProcess IN oResult
? oProcess.Name
oProcess.Terminate(0)
NEXT
Related posts:



Entries (RSS)
Very interesting and amusing subject. I read with great pleasure.
order clomid
Hmm… I read blogs on a similar topic, but i never visited your blog. I added it to favorites and i’ll be your constant reader.
I liked it. So much useful material. I read with great interest.
Thanks for share.