Checking If Processes Are Running

J

Jonathan Prior

Can Anybody tell me if there is a way to check if an
application is running that is only displayed within the
processes menu Of Task Manager and not applications.

I want to write it within either vb6 or .net standard.


Any Help would be much appreciated
Regards Jonny
 
H

Herfried K. Wagner [MVP]

Hello,

Jonathan Prior said:
Can Anybody tell me if there is a way to check if an
application is running that is only displayed within the
processes menu Of Task Manager and not applications.

I want to write it within either vb6 or .net standard.

Have a look at the class 'System.Diagnostics.Process' and its methods
'GetProcesses', 'GetProcessesByName' etc.
 
F

FaciCAD

If
UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrent
Process.ProcessName)) > 0 Then

MessageBox.Show("Process running", "Message", MessageBoxButtons.OK,
MessageBoxIcon.Warning)

else

MessageBox.Show("Process not running", "Message", MessageBoxButtons.OK,
MessageBoxIcon.Warning)

End

End If
 
H

Herfried K. Wagner [MVP]

Hello,

[Code to check if process is already running]

This will not work in all situations because there can be more than one
application with the same name. You may want to compare the file names of
the processes too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top