Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Chris Chamberlain
  Where is Chris Chamberlain?
 GL6 0PN
 United Kingdom
 Chris Chamberlain
 To: zakaria hamieh
  Where is zakaria hamieh?
 beirut
 Lebanon
 zakaria hamieh
 Tags
Subject: RE: RUNNING EXE
Thread ID: 104555 Message ID: 104690 # Views: 2 # Ratings: 0
Version: Visual FoxPro 8 Category: General VFP Topics
Date: Saturday, August 19, 2006 9:44:56 AM         
   


You can also use WMI - you need to substitute your own app names for 'myapp1.exe', and add as many code blocks as there are apps.

oManager = GETOBJECT([winmgmts:])
cQuery = [select * from win32_process where name='myapp1.exe']
oResult	= oManager.ExecQuery(cQuery)
FOR EACH oProcess IN oResult
    oProcess.Terminate(0)
NEXT


ENTIRE THREAD

RUNNING EXE Posted by zakaria hamieh @ 8/17/2006 3:09:17 PM
RE: RUNNING EXE Posted by Ken Murphy @ 8/17/2006 3:56:16 PM
RE: RUNNING EXE Posted by Pete Sass @ 8/18/2006 6:45:41 PM
RE: RUNNING EXE Posted by Chris Chamberlain @ 8/19/2006 9:44:56 AM
RE: RUNNING EXE Posted by Marcia Akins @ 8/19/2006 1:13:25 PM
RE: RUNNING EXE Posted by Borislav Borissov @ 8/19/2006 8:37:25 PM
RE: RUNNING EXE Posted by Chris Chamberlain @ 8/20/2006 9:17:06 AM
RE: RUNNING EXE Posted by zakaria hamieh @ 8/20/2006 9:24:10 AM