Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call two batches from a third one?

When my Windows Batch file (.bat) calls other two BAT files it exits after the first one.

How to make it run both of them?

like image 944
Jader Dias Avatar asked Dec 28 '22 08:12

Jader Dias


1 Answers

use call

e.g. in the calling batch file:

call batch1.bat
call batch2.bat

(also, some more background here.)

like image 80
mikej Avatar answered Jan 09 '23 02:01

mikej