PC Review


Reply
Thread Tools Rate Thread

Command Script problem

 
 
Rob C
Guest
Posts: n/a
 
      10th Dec 2003
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


 
Reply With Quote
 
 
 
 
kcvv
Guest
Posts: n/a
 
      22nd Jan 2004
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
> >
> >
> >.
> >



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script Without The GO Command Derek Hart Microsoft Dot NET 1 9th May 2006 11:21 PM
Script Command =?Utf-8?B?c3dhbXBlcg==?= Windows XP Security 1 25th Apr 2006 04:17 PM
Script command for Oracle 8.0 =?Utf-8?B?Umlja3lWZW5l?= Microsoft Access 1 20th Jan 2006 05:22 PM
Problem in executing a script on the server side ! Script found but nothing executed ! Cédric Rossé Microsoft ASP .NET 1 9th Nov 2004 09:43 AM
Command Script Problem Rob C Microsoft Windows 2000 CMD Promt 3 10th Dec 2003 11:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 PM.