Solved

How to get list of running tray applications?

Posted on 2008-06-19
2
771 Views
Last Modified: 2013-11-23
I'm adding a function to a Delphi 7 application which simulates the "Website -> ASP.Net Configuration" option from Visual Web Developer 2008 Express.  

It more or less works, i.e. it starts the ASP.Net Development Server, and launches the browser with the appropriate URL.  

However, if Visual Web Developer is already running on the given port, then it obviously throws an error.  There doesn't seem to be an option to make it silent (though if anyone knows of one, that would be very useful!)  

I found an example of how to get a list of running processes, but unfortunately that just identifies whether or not an instnace is running, not what port it is on.  

However, when you pass your mouse over the ASP.Net Development Server icon in the system tray it shows the tooltip "ASP.Net Development Server - Port XXXXX".  

This is the information that I need!  Is there anyway to get at it?  

Or of course if there is another way to reliably identify whether or not it is running on a particular port.  
0
Comment
Question by:DelphiMan7
2 Comments
 
LVL 3

Accepted Solution

by:
smot earned 500 total points
ID: 21824761
0
 

Author Closing Comment

by:DelphiMan7
ID: 31468808
Brilliant thanks!  Sorry I never saw your original thread before.  
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question