Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: Pravin Pawar
  Where is Pravin Pawar?
 Nashik
 India
 Pravin Pawar
 Tags
Subject: RE: Try to Terminate Exe from LAN
Thread ID: 416366 Message ID: 416370 # Views: 54 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: General VFP Topics
Date: Sunday, December 28, 2014 1:49:20 PM         
   


> llIsRunning = .F.
> IF loProcesses.Count > 0
> FOR EACH loProcess in loProcesses
> llIsRunning = .T.
> IF tlTerminate
> loProcess.Terminate(0)
> ENDIF
> ENDFOR
> ENDIF

Depending on what the application is doing the terminate command might fail the first time around, you may be required to loop more than once to terminate all processes.
Although I do not recommend this technique. Being kick out of an application by brute force is annoying to the user, and they might decide not to use your ERP system anymore.

ENTIRE THREAD

Try to Terminate Exe from LAN Posted by Pravin Pawar @ 12/28/2014 12:20:43 PM
RE: Try to Terminate Exe from LAN Posted by Mike Gagnon @ 12/28/2014 1:49:20 PM
RE: Try to Terminate Exe from LAN Posted by Neeraj Charne @ 12/28/2014 2:26:21 PM
RE: Try to Terminate Exe from LAN Posted by Jun Tangunan @ 12/29/2014 1:18:33 AM
RE: Try to Terminate Exe from LAN Posted by Neeraj Charne @ 12/29/2014 8:54:40 AM
RE: Try to Terminate Exe from LAN Posted by Jun Tangunan @ 12/30/2014 5:02:36 AM
RE: Try to Terminate Exe from LAN Posted by Zia Mughal @ 12/29/2014 8:08:15 AM
RE: Try to Terminate Exe from LAN Posted by Ali Koumaiha @ 12/29/2014 3:24:07 PM
RE: Try to Terminate Exe from LAN Posted by Greg Green @ 12/29/2014 10:16:21 PM
RE: Try to Terminate Exe from LAN Posted by mk sharma @ 12/30/2014 6:40:08 AM