Problem when executing application from batch file
- From: "Jack" <replyto@newsgroup>
- Date: Tue, 4 Oct 2005 18:01:22 -0400
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:
- Re: Problem when executing application from batch file
- From: J French
- Re: Problem when executing application from batch file
- From: Jack
- Re: Problem when executing application from batch file
- Prev by Date: Re: POLYTEXTOUT problems..( including declarations )
- Next by Date: DB Processing Question
- Previous by thread: ShellExecuteEx
- Next by thread: Re: Problem when executing application from batch file
- Index(es):
Relevant Pages
|
Loading