Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program - Not in Task Manager Application Tab, but still in Processes

Status
Not open for further replies.

Curtis360it

IS-IT--Management
Nov 7, 2005
88
0
0
US
I have a third party OCR app that continues to remain resident in processes when it is run. I would like to kill the process when the OCR work is complete. I noticed that under the Applications Tab of Task Manager, the app is not shown when it is finished with its work but still shows in processes. Is there any way to programatically check the applications tab to see if an app is running?
 
Yes... You can do this using .NET. Import the System.Diagnostics and use the Process.GetProcessByName function. Example....

Imports System.Diagnostics

If Not Process.GetProcessByName("theprocess") Is Nothing Then

MsgBox("Process is going....")

Else
Whatever else.
End If

Hope this helps.... Oldwen
 
Thanks for your input.

I have done that and it monitors the process. I am trying to see when under Application Tab in Task Manager that the application no longer is showing.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top