Re: Problem when executing application from batch file
- From: "Jack" <replyto@newsgroup>
- Date: Tue, 4 Oct 2005 20:47:09 -0400
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
>
.
- Follow-Ups:
- References:
- Prev by Date: Re: intellisense feature
- Next by Date: Help in Crystal Report
- Previous by thread: Problem when executing application from batch file
- Next by thread: Re: Problem when executing application from batch file
- Index(es):
Relevant Pages
|
Loading