Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Passing parameters from one application to another?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2006
    Posts
    746

    Resolved [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

  2. #2
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    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 ...

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    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.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2006
    Posts
    746

    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
  •  



Click Here to Expand Forum to Full Width