Pass in additional command line arguments to a single instance app

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I was wondering how to pass in additional command line arguments to a
single instance app that is already running.

What I'm trying to do is that user invokes the app and pass in a
filename to be processed, while it's processing (which may take some
time) the user can invoke the app again and pass in a different file,
but this time, instead of launching a second instance of the app, the
2nd file should just queue up in the 1st instance of the app. User can
invoke the app many times, eventually there will be a long queue within
that one and only instance.

Qestion is how to pass the new filenames (as command line arguments) to
the loaded app? I'm looking at DDE at the moment but it seems not the
best way to do this, are better alternatives exist?

Thanks!

.



Relevant Pages

  • Re: Programming "efficiently" on given hardware - what does it mean really?
    ... >> in a command line world again. ... > launching an app, selecting menu items, hoping it does what ... In a GUI environment, use a RAD tool to whip up a quick, simple UI ...
    (comp.programming)
  • Re: Application starts too soon
    ... expecting a network connection to exist. ... > The application runs froma a batch file. ... Finally the command prompt arrives, ... > think the app tries to run, encounters an error, and exits. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Updating a database
    ... command line parameters and exits. ... Update.exe waits for the main App to exit ... whilst the backend is an Access database. ... > I do changes to the app and the database (add fields, change queries, ...
    (microsoft.public.vb.general.discussion)
  • Re: [kde] Why KDE4 is called KDE?
    ... Maybe my krunner is broken. ... It in no way bests a command line for running an app. ... I can have multiple console windows open at the ...
    (KDE)
  • Re: Application starts too soon
    ... Windows XPE site and looked thru the two XPE books and found nothing on this ... >> The application runs froma a batch file. ... >> The batch file has my exe followed by a Shutdown command ... >> think the app tries to run, encounters an error, and exits. ...
    (microsoft.public.windowsxp.embedded)