Re: Problem when executing application from batch file



I do not understand and maybe someone please can explain to why, after
executing the first line of the batch file the batch execution stops until I
close my application.
What kind of mechanism is that?
sample of batch file:
[].exe /5553331234
[].exe /5556770808
[].exe /5553451234

That happens only if there is not previous instance running.
I can see batch execution in CMD window. I can see the first batch line
being executed and then nothing. I close my app and then second line of
batch file appears and my app is alive again. I close my app and then the
third line of batch file will appear.
If I understand the mechanism of that behaviour maybe I can patch over that
problem
Jack

"Jack" <replyto@newsgroup> wrote in message
news:ePSLp8SyFHA.3420@xxxxxxxxxxxxxxxxxxxxxxx
> Hello,
> I have that strange problem. My application can accept commands
> from command prompt and if there are more commands it will store commands
> in buffer and execute one by one
> Everything is fine and dandy when application is up and running and after
> that the comands (multi-commands from batch file) are sent.
> However, when application is not running and the batch file is used with
> multi-commands, then the first command will invoke the application and the
> batch execution will stop (pause). When application is closed then
> automatically, the second batch line will invoke the application again.
> That strange behaviour will be repeated until all commands will be sent
> from batch file.
>
> My code checks for App.PrevInstance and if there is one, it will send
> command using SendMessage to PrevInstance.
>
> I need your help to debug that problem. What should cause that?
> Your thoughts please,
> Jack
>


.



Relevant Pages

  • 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: 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)
  • Re: Problem when executing application from batch file
    ... >buffer and execute one by one ... >that the comands (multi-commands from batch file) are sent. ... >multi-commands, then the first command will invoke the application and the ... If you write a tiny stripped down loader for your App and use: ...
    (microsoft.public.vb.general.discussion)
  • Re: Problem when executing application from batch file
    ... To force the batch file to not wait for your app and return immediately, ... > is a single command from command prompt or it is part of batch file ... >> It appears that outside a batch file, i.e., in Command Prompt, the app is ...
    (microsoft.public.vb.general.discussion)
  • Re: Problem when executing application from batch file
    ... When I changed the batch file to the following: ... >> My app primary task is not accepting commands from the batch file. ... >> is a single command from command prompt or it is part of batch file ... >>> It appears that outside a batch file, i.e., in Command Prompt, the app ...
    (microsoft.public.vb.general.discussion)

Loading