On XP you could use tskill.exe to kill the process. Though its not a very clean method of ending an application.
Type: tskill /? in a command prompt for details. Otherwise you might want to check if the application is available for control via Active-X. -John *********************************** John Paul Osborne http://members.aol.com/josborne01 *********************************** Jon Sweeney / ATS wrote on 1/21/2004, 3:46 PM: > Further expnanation on my earlier post (see below) > The application I am trying to terminate is started using a cmd /k > command > to System Exec ("cmd /k impact -batch") which starts the application, > so the > DOS window and a couple of application windows are opened and need to be > terminated/closed. > Jon > > ------ > Prior post: > > What is the accepted method to terminate an application started with > System > Exec if it doesn't terminate itself ? (from LabVIEW of course). > I am calling System Exec with "Wait for Completion"=F so that I can do a > timeout polling, and would like to stop the application after a certain > number of seconds or if a certain file gets too large, especially because > under some error conditions it starts to consume memory resources > quickly. > (Using Windows XP and LabVIEW 6.0.2) > > Thanks, > Jon
