Problem when executing application from batch file



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: xp_cmdshell default path (system32) problem
    ... building a batch file in code and then ... it will NOT actually execute the delete if the patch I supply is not valid. ... I'm use xp_cmdShell to execute "erase" command like ...
    (microsoft.public.sqlserver.programming)
  • Re: Perfmon and batch file
    ... > event viewer and run command file. ... > but no execute the cmd file or execute it but not execute the ... You are probably making some assumptions in your batch file ... @echo off ...
    (microsoft.public.windows.server.general)
  • Re: SEPKILL /im SMC.EXE /f
    ... Subject: SEPKILL /im SMC.EXE /f ... Save the following as a batch file and execute it ... If done from a batch file the command is completed only when the process is stopped. ...
    (Bugtraq)
  • BatchFile/CmdScript to run Ad-aware, Spybot, AV s/w
    ... I would like a batch file or command script that would ... Execute Ad-aware, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: import .cab Analysis Services DB on website
    ... which user account is used to execute the batch file? ... I tried to run the msmdarch tool within an batch file from an execution ... it comes to the msmdarch command. ...
    (microsoft.public.sqlserver.olap)

Loading