Command Script problem

  • Thread starter Thread starter Rob C
  • Start date Start date
R

Rob C

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
 
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.
 
Back
Top