the script might not be reaching the ECHO ON command.
Most of the times, when u execute a exe file from a batch file, the batch
waits for the exe file to complete its execution before it continous with
the next line
to avoid this just add a "start" command to ur executable line -
start C:\CMS\CMSDesktop
this will just start the program and continue with the next line.
"prasad" <(E-Mail Removed)> wrote in message
news:0baf01c3bf35$17888260$(E-Mail Removed)...
>
> "exit" after the "echo on" statement.
>
>
> >-----Original Message-----
> >I have a batch file that executes when the user clicks on
> >an icon on their desktop. The batch file copies down new
> >files from a server and then launches our executable.
> >
> >My problem is that the COMMAND window stays open after
> >execution of the batch file. Is there a way to close the
> >command window without terminating the application that
> >gets launched from it?
> >
> >The script is printed below.
> >
> >Regards,
> >
> >-Rob
> >
> >ECHO OFF
> >IF EXIST C:\CMS\CMSDesktop.exe replace /U
> >\\myserver\cms\CMSDesktop.exe C:\CMS
> >replace /U \\myserver\cms\forms\*.* C:\CMS\forms
> >C:\CMS\CMSDesktop
> >ECHO ON
> >
> >
> >.
> >
|