Start mult commands then end comman

February 8, 2011 at 06:41:56
Specs: windows
Hello

Is it possible to start several .bat files at the same time, and when everyone is finished executing a last .bat file?

Would like to do this in at start.bat file


See More: Start mult commands then end comman

Report •

#1
February 8, 2011 at 12:34:55
start 1st.bat & start 2nd.bat & start 3rd.bat "and so on" & start /w 2ndlast.bat
last.bat


In first line put all the batch files sperated by a "& start" before the 2nd last batch file put start /w instead of start
in 2nd line put your last.last

Subhash Chandra.
www.s-chandra.co.cc


Report •

#2
February 9, 2011 at 00:14:03
Hallo and thank you for your help.

1st, 2nd, 3rd etc takes different amount of time before finalising. So unless the last batch file is the one taking the longest time, this wont work (if i did this correctly)

Tried to introduce a inbetween batch file with:
"start 1st.bat & start 2nd.bat & start 3rd.bat".

And then in start.bat writing:
"start /w inbetween.bat

start last.bat"

This didnt work beacuse inbetween.bat ended before 1st, 2nd and 3rd etc.


Report •

#3
February 9, 2011 at 02:05:08
seems strenge..

can you try to combine all the batch files in a single one?

Subhash Chandra.
www.s-chandra.co.cc


Report •

Related Solutions

#4
February 9, 2011 at 02:47:08
Still no success.

Just to check if i did correctly from your first suggestion, the code would look something like this, if three batch files:

start bat1.bat & start bat2.bat & start /w bat3.bat

start last.bat


Report •

#5
February 9, 2011 at 02:48:29
deleted

Report •

#6
February 9, 2011 at 12:06:28
yes, Thats what i meant and it should work..
what you mean by Deleted means

Subhash Chandra.
www.s-chandra.co.cc


Report •

#7
February 10, 2011 at 00:51:01
Deleted a double post.

Cant get this to work. last.bat starts when bat3.bat ends, even if bat2.bat and bat1.bat is still running.


Report •

#8
February 14, 2011 at 00:16:00
maybe you can try to add a timeout? try to add the timeout so that at the time everythings finished the last bat runs.

Report •

#9
February 14, 2011 at 00:52:18
Each bat file could take from 1 minute to several hours before finishing depending on the input. So for me, there would probably be better to use a pause function and then start last.bat manually.


Report •

#10
February 14, 2011 at 01:11:55
hmm yes it does sound like a puzzle. if it is only going to be used on your computer it will be easy to auto start the last one, whenever the second last one has stopped working. but you will have to use a 3rd party application. I recommend using shutter. that way you can run all of the bat files and let the last bat start when the 2nd last bat's process ends

Report •

Ask Question