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.
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.
Just put CD c:\temp
:
cd c:\temp\
command1
command2
Or even:
cd c:\temp\
start /W command1
start /W command2
Put "call" in front of references to other .bat files. Like this,
cd c:\temp
call command1
call command2
dont forget to check if you are really on drive c. try executing a "c:" first before anything else.
c:
cd c:\temp\