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?
 
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...
0
 
G-SEMPECommented:
Hello,
You can do this by using the "PAUSE" DOS command

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

  Pause >Nul
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.