| Re: Batch File Questions Almost right, but use the "start" command to start the programs using
the "/w" (wait) switch if you really need the first program to finish
before starting the second, thus....
@echo off
start /w "C:\Program Files\My Application\My Program" /parameters
start /w "C:\Program Files\Another App\Another Program" /parameters
==
Cheers, Tim Meddick, Peckham, London. :-)
"Lushington" <Lushington@discussions.microsoft.com> wrote in message
news:E4484895-A1D2-4FA2-9CF7-31E0DAA75EED@microsoft.com...
> It's been a long time since I've done any batch programming and I need
> my
> memory refreshed.
>
> If I start two applications in sequence
>
> @echo off
> "C:\Program Files\My Application\My Program" /parameters
> "C:\Program Files\Another App\Another Program" /parameters
>
> Does the first program have to complete before the second one starts
> (which
> is what I want)? Or do I have to be a little fancier?
>
> A Command Prompt window opens when the batch file is executed. Is
> there a
> way to close the Command Prompt window before the programs complete? |