How to run multiple batch files, within on batch file.

Hello Experts,

I have about 12 Batch files that do a few simple things.  I'd like to automate them with a scheduled task.  Easy, but what I'd like to do is make one master batch file, that would execute all 12, so all I would have to do is set a scheduled task for that one master batch file.  Can you help, I'm not exactly an experts so if you could keep it straight forward, that would be great.   Thanks.

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

dinomixConnect With a Mentor Commented:
Create a new text file and rename it to .bat. In there simply call your other batch files by using call name.bat. If they are all in the same directory then you can use just the filename.bat, otherwise you will need the full path. Your master.bat should look something like this.

call bat1.bat
call bat2.bat
call bat3.bat
Mike TomlinsonMiddle School Assistant TeacherCommented:
Use the "Call" command.

In the example below, Batch #1 calls Batches #2 and #3:

' 1. bat
@echo off
Call 2.bat
Call 3.bat

' 2.bat
@echo Idle

' 3.bat
@echo Mind
rdabateAuthor Commented:
Both solutions look interesting, but should I include the path to each batch file?
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Mike TomlinsonMiddle School Assistant TeacherCommented:
If they are all in the SAME directory then you do NOT need the path.

If the batch file being called is in another folder then give the full path to it...
rdabateAuthor Commented:
I included the full path, so far seems to work.  Thanks a bunch
Mike TomlinsonMiddle School Assistant TeacherCommented:
*Sigh*....dinomix posts 8 minutes after me with the same thing: USE THE CALL COMMAND
All Courses

From novice to tech pro — start learning today.