Command Script problem

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
 
K

kcvv

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top