?
Solved

batch file to run multiple batches

Posted on 2009-07-14
1
Medium Priority
?
436 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
AmazingTech earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month7 days, 20 hours left to enroll

765 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