By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,403 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

Checking If Processes Are Running

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hello,

"Jonathan Prior" <jo***********@hotmail.com> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #2

P: n/a
If
UBound(Diagnostics.Process.GetProcessesByName(Diag nostics.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
Nov 20 '05 #3

P: n/a
Hello,

"FaciCAD" <ca*@norclair.com> schrieb:
[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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.