Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Windows XP on a Thinkpad. When I type ipconfig in the run command line prompt, the window appears briefly and then disappears without me doing anything (and before I can read anything). Does anyone know what causes this and how to fix it?

share|improve this question
Welcome to Windows "user-friendliness" :-) – geek May 9 '10 at 12:45
up vote 11 down vote accepted

It's because the ipconfig has finished, and automatically closes itself. This way you won't get a chance to read the messages it returns.

To be able to read the ipconfig messages run ipconfig from the command line.

  1. In the run command prompt enter cmd followed by enter
  2. You should see a black screen, similar to the old DOS, enter ipconfig followed by enter
  3. Voila, your ipconfig :)

This works for all other similar commands/programs in the command line.

share|improve this answer
Perfect, thanks. – JDelage May 8 '10 at 13:53

Open a command prompt first before typing ipconfig. What's happening is the ipconfig command is running and completeing and windows closes out the command prompt window as soon as the command it's running completes. Instead of ipconfig, type cmd and then in the new command prompt window type ipconfig (followed by enter) and then you can read the output. You can also use ipconfig /all to get even more detailed output if you need it (such as DNS servers and such).

share|improve this answer

there is another possibility, and i am writing this from memory so it may not be exact. there is a file called msdos.pif. when you look at the properties, there is a setting called "close window on exit"... if you remove the check on this, then the ipconfig (or any other command you run) window will remain open.

share|improve this answer
Nice. Not sure if it still applies to Windows XP as well. A quick search shows some information for Win95: – Arjan May 9 '10 at 10:54

The reason of why closes so fast it's because it's a command line tool and not a Windows app., that's why just appears for a few seconds. But it's really simple to view your IP Configuration.

Just Go to

Start >> Run >> Type CMD Click OK (That should open the command prompt window)

Type >> IPCONFIG >> Press [Enter] (That should give you the configuration info that you need)

share|improve this answer
Correct, but how is this different from the answers that were already posted? Still, welcome at Super User! (And as an aside, see also Given two [practically] identical [useful] answers, which answer do you vote for?) – Arjan May 8 '10 at 14:00

Try "cmd /k ipconfig /all" without quotes !!

share|improve this answer
Can you expand your answer a little to explain how this solves the problem? Thanks. – fixer1234 Mar 17 '15 at 6:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.