LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

End Process through Labview? Help!

I need to be able to end a process (an .exe)  that I otherwise have to go into task manager to delete. 
   can anyone explain how to do this easily.  I know the exact name of the process that I'm trying to end. I'm expecting there is some way I should be able to draw some Active X node to 'current running processes' and tell it to delete process x. 
 
ps.  I am familiar with this type of utility in labview, but haven't been able to figure this one out on my own.
 
Thanks,  Kevin
0 Kudos
Message 1 of 7
(3,398 Views)
Here is a vi that will get the process ID from the program name, and then kill that process.  The vi must use tlist.exe which is

attached here as tlist.vi.  I had to change it from exe to vi to post it here.  SO be sure to rename it from tlist.vi to tlist.exe.

 

 

Message Edited by tbob on 08-28-2007 12:14 PM

Message Edited by tbob on 08-28-2007 12:14 PM

Message Edited by tbob on 08-28-2007 12:16 PM

- tbob

Inventor of the WORM Global
Download All
0 Kudos
Message 2 of 7
(3,389 Views)
I've done exactly what you want very easily using an executable I found on the 'net called "Process.exe." It does what your first respondee's code does but I think the solution using this may be simpler as it only needs the task name, not the ID as well, although I think you can kill by task ID if you want to. Sorry if this sounds vague but I'm at home and my LV code that did the job (calling "Process.exe" with some of its switches) is at work. I do have "Process.exe" here, though. I'll attach it but I didn't know you could only attach something if it had a .vi extension, so I'll do the same as your first respondee. Google for it and see what you get. I'll re-post when I'm at work tomorrow if I get time. Hope this helps.
 
Regards, GGT.
0 Kudos
Message 3 of 7
(3,375 Views)

Hi Kevin,

      Looks like there's many ways to do this - here's a (.NET) solution. Smiley Wink

If you want it in 7.1 just say the word!

Cheers.

Message Edited by tbd on 08-28-2007 11:23 PM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 4 of 7
(3,332 Views)


@tbd wrote:

If you want it in 7.1 just say the word!



Hi tbd,

I want in 7.1. Can you please convert n upload?

- Partha ( CLD until Oct 2027 🙂 )
Message 5 of 7
(3,328 Views)

... here you go. Smiley Happy

 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 6 of 7
(3,324 Views)
tbd,
  thanks- this is just the solution I was hoping for- simple and easy to use!  
 
kevin
0 Kudos
Message 7 of 7
(3,303 Views)