Here 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

source

Related posts:

  1. Visual Foxpro : Do’s and Dont’s
  2. How to : Visual Foxpro | OO Calc
  3. Data Connection
  4. Howto: Remove Windows Activation Product
  5. Connection strings for Access with visual foxpro
4 Responses to “Visual foxpro: Terminate active windows application”
  1. Very interesting and amusing subject. I read with great pleasure.
    order clomid

  2. 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.

  3. I liked it. So much useful material. I read with great interest.

  4. Thanks for share. :)

Leave a Reply







Trek Pay - Terbukti sudah membayar 5 Dollar

Usaha modal kecil!

Modern Bedroom Furniture

Click Here to Advertise on My Blog

Add to Technorati Favorites

blogarama - the blog directory