Mark Balla Posted October 21, 2004 Report Share Posted October 21, 2004 We are running a test on a circuit board. In order to test the unit we are required to use a .dll that the client wrote. The problem is if the board is bad the .dll hangs. Because the board is a security device we are not allowed to mess with the dll in any way and the source code is not available. The only way to fix the problem right now is to go into task manager and end the process. Does any one have code that will do this programmatically or know what the API call would be Quote Link to comment
Jim Kring Posted October 21, 2004 Report Share Posted October 21, 2004 We are running a test on a circuit board. In order to test the unit we are required to use a .dll that the client wrote. The problem is if the board is bad the .dll hangs. Because the board is a security device we are not allowed to mess with the dll in any way and the source code is not available. The only way to fix the problem right now is to go into task manager and end the process.Does any one have code that will do this programmatically or know what the API call would be 2429[/snapback] Here are some VIs that use system exec to execute the tasklist and taskkill commands. Download File:post-17-1098386155.zip -Jim Quote Link to comment
proximableu Posted October 22, 2004 Report Share Posted October 22, 2004 Jim, I had wrote some functions, using .NET framework, this will work with 7.0 and up.. Code is at home, so I cannot post it right now.. If there is someone interested, I will post tomorrow.. This including: functions : PIDs by names, names by PIDs, kills, CloseWindows, how many threads, memory counts, processor "busy" couns, child windows counts.. look at system.dll in .NET framework. Besides, you could use pskill.exe from sysinternals.. You can kill by name there. This is easyest way.. /ProximaBleu Quote Link to comment
ivan Posted July 12, 2005 Report Share Posted July 12, 2005 we have some old applications written in LabView 5.1. And now we want to broaden this applications with some features including this tasklist. so how can i use this functions in lv5.1? Quote Link to comment
Rakash Posted August 24, 2005 Report Share Posted August 24, 2005 Also just for a bit of information. The Taskkill and Tasklist commands only work in Windows XP. In Windows 2000, I think the command would only be "kill" and not "taskkill". I'm not sure if there is an equivelent for tasklist. I may be wrong, but I'm pretty sure this is the case. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.