|
-
Sep 21st, 2006, 08:51 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] [2005] Passing parameters from one application to another?
Hi again,
I'm not even sure if is easily doable but I have two separate applications. One scans a remote machine for WMI info and the other builds WMI queries that can be run against a list of remote machines. This second application then returns a list of machines matching the WMI query
What I would like to be able to do is select one of the machines returned by the WMI query builder application and then have the scanning application scan it.
So, basically, passing a parameter to an already running, but separate, application.
Is this possible?
ManagePC - the all-in-one PC management and inventory tool
-
Sep 21st, 2006, 08:57 AM
#2
Fanatic Member
Re: [2005] Passing parameters from one application to another?
What I would like to be able to do is select one of the machines returned by the WMI query builder application and then have the scanning application scan it. So, basically, passing a parameter to an already running, but separate, application.
I'd say yes its possible. You can either use a common registry key to store the machine name to be queried. The second app should then have a timer system to pick up the machine name, set a flag as being busy and then run the necessary query.
If you don't want to use the registry you could use a temporary file that the second app would watch using FileSystemWatcher. Or you could use a temporary database table.
You could shell the second app but since you stated that the second app is already running you have to use one of the above mechanisms.
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
-
Sep 21st, 2006, 10:41 PM
#3
Re: [2005] Passing parameters from one application to another?
If you are using 2005 then you make it a single instance application and then get parameters via comment line in the StartUpNextInstance application event.
Read up on that event in the help docs.
-
Sep 22nd, 2006, 02:26 AM
#4
Thread Starter
Fanatic Member
Re: [2005] Passing parameters from one application to another?
Perfect, that's exactly what I was looking for. Thanks.
ManagePC - the all-in-one PC management and inventory tool
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|