Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: zakaria hamieh
  Where is zakaria hamieh?
 beirut
 Lebanon
 zakaria hamieh
 To: Marcia Akins
  Where is Marcia Akins?
 Akorn
 Ohio - United States
 Marcia Akins
 Tags
Subject: RE: RUNNING EXE
Thread ID: 104555 Message ID: 104743 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: General VFP Topics
Date: Sunday, August 20, 2006 9:24:10 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

>
> Now, I am no expert on WMI, but it seems to me that this is just like using the three finger solute to get out of VFP via task manager. I know for a fact that exiting the application in this manner can oftem cause data correuption - the very thing that zakaria is trying to avoid.
>
> If I am wrong about this, I apologize for butting in < s >.
>
> Regards,
> Marcia G. Akins
> Tightline Computers, Inc.


Hi Marci
For me you opinion is always in class 1
zakaria
foxes will always be running

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