Batch File execution problems

  • Thread starter Thread starter Brad Morris
  • Start date Start date
B

Brad Morris

Can anyone tell me why this batch file won't load each of the files in
order?

It doesnt seem to do anything (other than a command line propmpt flashes on
the screen and disappears BUT nothing loads).


::start.bat
::starts multiple programs
::
@echo off

START"""C:\Program Files\QuickVerse Sermon Builder 4\qvsb4.exe"
START"""C:\Program Files\PC Magazine Utilities\Winpointer\WinPointer.exe"
START"""C:\Program Files\WordPerfect Office 12\Programs\wpwin12.exe"


Thanks
 
From: "Brad Morris" <[email protected]>

| Can anyone tell me why this batch file won't load each of the files in
| order?
|
| It doesnt seem to do anything (other than a command line propmpt flashes on
| the screen and disappears BUT nothing loads).
|
| ::start.bat
| ::starts multiple programs
| ::
| @echo off
|
| START"""C:\Program Files\QuickVerse Sermon Builder 4\qvsb4.exe"
| START"""C:\Program Files\PC Magazine Utilities\Winpointer\WinPointer.exe"
| START"""C:\Program Files\WordPerfect Office 12\Programs\wpwin12.exe"
|
| Thanks
|


Change it to...

@echo off
START /wait "C:\Program Files\QuickVerse Sermon Builder 4\qvsb4.exe"
START /wait "C:\Program Files\PC Magazine Utilities\Winpointer\WinPointer.exe"
START /wait "C:\Program Files\WordPerfect Office 12\Programs\wpwin12.exe"

The above will run each utility one at a time. The second won't start until the first one
ends and the third won't start until the second one ends.

If you don't want to wait between each utility being loaded...

@echo off
START /min "C:\Program Files\QuickVerse Sermon Builder 4\qvsb4.exe"
START /min "C:\Program Files\PC Magazine Utilities\Winpointer\WinPointer.exe"
START /min "C:\Program Files\WordPerfect Office 12\Programs\wpwin12.exe"
 
I must be doing something wrong or ... I want each of these to load into
windows. What happens when I run the following batch recommended by Dave
(Thanks Dave for your reply) is that a DOS window opens up and On the top
bar of this new window it will say <path\Program Name>
next line drops down to a c:\documents and Settings\Brad Morris\Desktop>
prompt and nothing happens.
I have two other Dos prompts for each of the other programs on my task bar
at the bottom and they are doing nothing either.
Any other suggestions? (Running WinXP PRO)
 
From: "Brad Morris" <[email protected]>

| I must be doing something wrong or ... I want each of these to load into
| windows. What happens when I run the following batch recommended by Dave
| (Thanks Dave for your reply) is that a DOS window opens up and On the top
| bar of this new window it will say <path\Program Name>
| next line drops down to a c:\documents and Settings\Brad Morris\Desktop>
| prompt and nothing happens.
| I have two other Dos prompts for each of the other programs on my task bar
| at the bottom and they are doing nothing either.
| Any other suggestions? (Running WinXP PRO)

I wish I understood that :-(
 
From: "Rick "Nutcase" Rogers" <[email protected]>

| Hi,
|
| Try it this way:
|
| ::start.bat
| ::starts multiple programs
| ::
| @echo off
|
| START "C:\Program Files\QuickVerse Sermon Builder 4\qvsb4.exe"
| START "C:\Program Files\PC Magazine Utilities\Winpointer\WinPointer.exe"
| START "C:\Program Files\WordPerfect Office 12\Programs\wpwin12.exe"
|
| --
| Best of Luck,
|
| Rick Rogers, aka "Nutcase" - Microsoft MVP
|
| Associate Expert - WindowsXP Expert Zone
|
| Windows help - www.rickrogers.org


Q:
If that were the case, since the files are all EXE files, why even use the START command ?
 
From: "Rick "Nutcase" Rogers" <[email protected]>

| Without the "start", the subsequent (2nd, 3rd, etc.) programs won't open
| until the first one is closed.
|
| --
| Best of Luck,
|
| Rick Rogers, aka "Nutcase" - Microsoft MVP
|
| Associate Expert - WindowsXP Expert Zone
|
| Windows help - www.rickrogers.org
|


I see... Thanx.
 
Back
Top