Batch file for IP Address

Posted on 2006-04-12
Last Modified: 2010-04-17
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
ipconfig /all

This closes the screen I don't want it to close.
Question by:autumn801

    Expert Comment

    You can do this by using the "PAUSE" DOS command

    Guillaume SEMPE
    LVL 25

    Expert Comment

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

      Pause >Nul
    LVL 20

    Accepted Solution

    also your batch should be like this one using the above suggestions

    @echo off
    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...

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now