tags:

views:

79

answers:

5

I need to create a batch file that goes to a directory and execute a series of executables

start cd c:\temp\
command1
command2

the above doesn't work, it only starts in c:\temp, but ignores rest.

A: 

Why are you using the start command? Take that out and it should work.

Broam
A: 

Just put CD c:\temp:

cd c:\temp\
command1
command2

Or even:

cd c:\temp\
start /W command1
start /W command2
Brian R. Bondy
+3  A: 

Try:

cd c:\temp
start command1 
start command2
Carlos Gutiérrez
+2  A: 

Put "call" in front of references to other .bat files. Like this,

cd c:\temp
call command1 
call command2
Josh Knauer
+2  A: 

dont forget to check if you are really on drive c. try executing a "c:" first before anything else.

c:
cd c:\temp\
fedmich