I need an app that I am writing to be able to accept command line parameters (which I know how to do). But I also need it to be able to accept them when the app is running without creating a new instance of itself.
Basically the app will be shelled to from another program (not a VB or my creation, so I can't alter it). I need to make sure that the command gets executed by my application without creating another instance of itself.
The propritary(sp?) software would call "c:\myapp /save", this would fire up my app. My app would retrieve the command line parameter and check to see if there is a copy already running, then it would either pass the parameter to the already running program or it would execute the command.
Anyone have any ideas? Is this a good scenerio, given that the propritary(sp?) can only communicate with my app in this mannor?
Thanks,
Troy Williams B.Eng.
fenris@hotmail.com
Basically the app will be shelled to from another program (not a VB or my creation, so I can't alter it). I need to make sure that the command gets executed by my application without creating another instance of itself.
The propritary(sp?) software would call "c:\myapp /save", this would fire up my app. My app would retrieve the command line parameter and check to see if there is a copy already running, then it would either pass the parameter to the already running program or it would execute the command.
Anyone have any ideas? Is this a good scenerio, given that the propritary(sp?) can only communicate with my app in this mannor?
Thanks,
Troy Williams B.Eng.
fenris@hotmail.com