473,386 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Checking If Processes Are Running

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
3 12088
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Deepak Sarda | last post by:
Hello everyone. I have run into something which I believe is a bug or a shortcoming of the threading.Thread module. My program spawns 15 threads. For this I've creating a new class with...
5
by: Roger | last post by:
I would like to get a list of running processes on a remote machine. How is this possible via VB.Net? Is it possible? Can someone point me in the right direction. thanks, rog
2
by: D | last post by:
I have an array of processes declared like so System.Diagnostics.Process _ProcessArray = new System.Diagnostics.Process; and the code below shows how I iterate thru the array and looking for a...
2
by: jjmraz | last post by:
Hi, I have a need to create an app that will check on my pc what apps are running and if one is found that shouldn't be running, shut it down. How can I do this in c# or what areas should I be...
0
by: Rusty Shackleford | last post by:
I am having trouble getting my ASP.Net applications and sessions to stay running. At first, I thought it was my lack of understanding of ASP.Net, or the fact that I am using Anonymous...
5
by: kd | last post by:
Hi All, If the name of a process is known, is it possible to check whether it is in execution? What I did was to fetch all the processes running on the system using Process.GetProcesses() and...
5
by: Andy Baker | last post by:
Our VB.NET 2003 application requires several processes to run overnight. I have written a program to perform these processes with a simple user interface to allow the user to switch various options...
9
by: Tony | last post by:
Hi all, I have a DB2 8.2(fk14) running on Solaris 9 server. Once the DB2 working, I can see more than 30 DB2 processes(db2sysc) running at the same time. Is that normal? Thanks.
2
by: Mike P | last post by:
I am programmatically starting and ending a local instance of Outlook : //programmatically start local Outlook System.Diagnostics.Process proc = new System.Diagnostics.Process();...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.