Batch file for IP Address

How do I get to keep the CMD DOS screen up when I write a batch file.
I don't want to write it to a output file.
I just want the screen to remain up without closing.
Here is what I wrote so far.

@echo off
cls
ipconfig /all
cls


This closes the screen I don't want it to close.
Thanks
autumn801Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

G-SEMPECommented:
Hello,
You can do this by using the "PAUSE" DOS command

Guillaume SEMPE
InteractiveMindCommented:
And to disable the "Press any key to continue . . ." message for the Pause command, you can use:

  Pause >Nul
jimmymcp02Commented:
also your batch should be like this one using the above suggestions

@echo off
cls
ipconfig /all
pause >nul




i took the second cls command out of the batch  because that would give you a blank screen when you use CLS it will clear the screen...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.