10
1
I have three bat files I would like to run, in three different directories:
directory/bat1/bat1.bat
directory/bat2/bat2.bat
directory/bat3/bat3.bat
I would like to use one master .bat to start all of the other bats in their directories. I can't use call because I get errors because there are dependencies for each different bat in the directory. I tried using start but that doesn't work either, it just bring up a command prompt withing the folder.
I know this sounds a little confusing but all I want to do is use one single .bat file to run multiple .bat files independent from each other in their own directories.
Try
cd
to each directory in turn then run the batch file ... – DavidPostill – 2016-04-06T18:03:15.797What would that code look like? Would it be cd "directory/bat1/" start bat1.bat? – JCTechie – 2016-04-06T18:03:50.333
1
cd c:\directory\bat1 && bat1.bat
thencd c:\directory\bat2 && bat2.bat
etc – DavidPostill – 2016-04-06T18:05:22.200That did not work for me, it only ran the first batch file. – JCTechie – 2016-04-06T18:19:38.787