Gremious
Gremious

Reputation: 1

How to not have to press enter when using the call command in a batch file

I have a simple code running a few batch scripts in succession

echo Call 1
call 1.bat
echo Call 2
call 2.bat
echo Call 3
call 3.bat

What I would like is that once I run this file it would just do it's thing, without me having to press enter on start and on every call. Is it possible to do this?

I'm a beginner and I can't for the life of me find an answer for this question, so please do excuse me if I missed it.

Upvotes: 0

Views: 219

Answers (1)

user6811411
user6811411

Reputation:

If you don't want to change the other batches you could pipe an echo.

For /l %%A in (1,1,3) do (Echo:|Call %%A.bat)&Echo Called %%A.bat

Upvotes: 1

Related Questions