Solved

batch file to run multiple batches

Posted on 2009-07-14
1
422 Views
Last Modified: 2012-05-07
What is the best way to make this work?

i am trying to run 11 batches in one master batch, one after the other, not all at the same time. Also from each batch file i would like to see the message displayed only in the master batch file.

Then at the end ask for a reboot.
@ECHO OFF
@Net USE \delete y:
@NET USE Y: \\filesrv\install\jlimo
CLS
@cd Y:\install\batches
 
ECHO ***Processing Full Install of Limores***
@1.bat
@2.bat
@3.bat
@4.bat
@5.bat
@6.bat
@7.bat
@8.bat
@9.bat
@l10.bat
@11.bat
 
shutdown -r
exit

Open in new window

0
Comment
Question by:alexr54
1 Comment
 
LVL 21

Accepted Solution

by:
AmazingTech earned 500 total points
ID: 24853296
Try this.
@ECHO OFF
@Net USE \delete y:
@NET USE Y: \\filesrv\install\jlimo
CLS
@cd Y:\install\batches
 
ECHO ***Processing Full Install of Limores***
@call 1.bat
@call 2.bat
@call 3.bat
@call 4.bat
@call 5.bat
@call 6.bat
@call 7.bat
@call 8.bat
@call 9.bat
@call l10.bat
@call 11.bat
 
set /p answer=Do you want to reboot? (Y/N) 
if /a "%answer%" == "y" shutdown -r
exit

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Build VS2015 project in bat command 3 86
Command to modify Registry entry 5 108
Command prompt output to variable? 9 44
How can i echo a ! to end of a file? 8 15
When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question