473,322 Members | 1,538 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,322 software developers and data experts.

how to read taskMgr/Proccess to see if an app is running?

Hello,

I need to determine if a VB2005 app is running, but I need to determine this
from another VB2005 app. Back in the com days there were various API's to do
this

apiGetClassName
apiGetWindow
apiGetWindowLong

How to do this from VB2005?

Thanks,
Rich
Mar 6 '07 #1
2 979
Take a look at this:
Same principal, just dont kill the process :-)

Private Sub KillExcel()

Dim myProcesses As Process
Dim myProcess As Process

myProcesses = Process.GetProcessesByName("EXCEL.EXE")
For Each myProcess In myProcesses
myProcess.Kill()
Next

'These next two lines are not needed as teh sub ends right after.
myProcesses = Nothing
myProcess = Nothing

End Sub

Miro

"Rich" <Ri**@discussions.microsoft.comwrote in message
news:88**********************************@microsof t.com...
Hello,

I need to determine if a VB2005 app is running, but I need to determine
this
from another VB2005 app. Back in the com days there were various API's to
do
this

apiGetClassName
apiGetWindow
apiGetWindowLong

How to do this from VB2005?

Thanks,
Rich

Mar 6 '07 #2
Thanks. I knew this was easier than using com API's.

"Miro" wrote:
Take a look at this:
Same principal, just dont kill the process :-)

Private Sub KillExcel()

Dim myProcesses As Process
Dim myProcess As Process

myProcesses = Process.GetProcessesByName("EXCEL.EXE")
For Each myProcess In myProcesses
myProcess.Kill()
Next

'These next two lines are not needed as teh sub ends right after.
myProcesses = Nothing
myProcess = Nothing

End Sub

Miro

"Rich" <Ri**@discussions.microsoft.comwrote in message
news:88**********************************@microsof t.com...
Hello,

I need to determine if a VB2005 app is running, but I need to determine
this
from another VB2005 app. Back in the com days there were various API's to
do
this

apiGetClassName
apiGetWindow
apiGetWindowLong

How to do this from VB2005?

Thanks,
Rich


Mar 6 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I...
1
by: John Camp | last post by:
Hey, I don't know much more than the basics of C++, and I've been trying to write a program that will let me connect to an actual proccess through a port. The thing is, I don't just want to know if...
1
by: garth ferris | last post by:
i'm having a problem with a 3d engine i'm writing (just for fun, i'm kind of a beginner) and i was wondering if anyone could look through the following drwtsn32.log entry. the problem (among...
0
by: Christopher Attard | last post by:
Hi, I'm using the PerformanceCounter .NET class to obtain the "% Processor Time" for processes that are running on a remote host. These processes are obtained using the...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.