Re: Problem when executing application from batch file
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Wed, 5 Oct 2005 00:09:34 -0500
"Jack" <replyto@newsgroup> wrote in message
news:eYKS4$UyFHA.3236@xxxxxxxxxxxxxxxxxxxxxxx
> This suggestion does not apply to my problem.
> I am executing a batch file with multiple command lines in it, not the
> single batch line with multiple commands.
> That makes big difference.
> Jack
> "Ralph" <nt_consulting64@xxxxxxxxx> wrote in message
> news:sYGdnZCX09bDrd7eRVn-hQ@xxxxxxxxxxxxxxx
> >
> > "Someone" <nobody@xxxxxxx> wrote in message
> > news:iHD0f.281$MN6.21@xxxxxxxxxxxxx
> >> > 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
> >>
> >> Tell your users to use:
> >>
> >> start /wait yourapp para1 para2...
> >>
> >> Type "start /?" to see the list of parameters. Note that Windows 95/98
> > only
> >> support Min/Max/Wait.
> >>
> >> > My code checks for App.PrevInstance and if there is one, it will send
> >> > command using SendMessage to PrevInstance.
> >>
> >> PrevInstance is Boolean, you can't use SendMessage with it.
> >>
> >>
> >>
> >> "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
> >> >
> >
> > "Note that Windows 95/98 only support Min/Max/Wait."
> >
> > Maybe I misunderstood you. But /Min /Max /Wait work in Win2k, and AFAIK
in
> > XP.
> >
> > It is a good suggestion. I always forget to use the command line
> > utilities.
> >
> > -ralph
> >
Your absolutely right. Got off track. My apologies.
.
- References:
- Prev by Date: Re: Problem when executing application from batch file
- Next by Date: Re: Problem when executing application from batch file
- Previous by thread: Re: Problem when executing application from batch file
- Next by thread: Re: Problem when executing application from batch file
- Index(es):
Relevant Pages
|