ipconfig command will not execute

  • Thread starter Thread starter Dick Harrison
  • Start date Start date
D

Dick Harrison

I am running XP2 -- I enter the ipcofig in the Run Open command line -- and
I get a "flash" (one second) of the screen, then the system returns to prior
state. No problems, just will not execute. Any guidance on what may be
wrong.

Thanks, Dick
 
Dick said:
I am running XP2 -- I enter the ipcofig in the Run Open command
line -- and I get a "flash" (one second) of the screen, then the
system returns to prior state. No problems, just will not execute.
Any guidance on what may be wrong.

Uhm..
It's executing just fine. You have not told the command prompt you are
opening to stay open.

You have two choices.

1) Start --> Run
CMD
OK
In the command promt window type:
IPCONFIG /ALL
Press ENTER.

2) Start --> Run
CMD /K IPCONFIG /ALL
OK

(The "/ALL" just makes sure you get all the information and may be more than
what you need.)
 
Dick Harrison said:
I am running XP2 -- I enter the ipcofig in the Run Open command line -- and
I get a "flash" (one second) of the screen, then the system returns to
prior state. No problems, just will not execute. Any guidance on what may
be wrong.

Thanks, Dick

It's running, producing an output (the flash) then terminating.

To see the results, run CMD.EXE, which will give you a "DOS window" with a
"DOS prompt."
Another way you can do this is by navigating via
"Programs>Accessories>Command prompt"

type in your IPCONFIG command and you should see some results.

type in EXIT to close the window.

(commands in upper-case for emphasis only)

For batch techniques try alt.msdos.batch.nt

HTH

....Bill
 
Dick Harrison said:
I am running XP2 -- I enter the ipcofig in the Run Open command line -- and
I get a "flash" (one second) of the screen, then the system returns to
prior state. No problems, just will not execute. Any guidance on what may
be wrong.


Well, you ran the program, the program ended, so the console window closed.
That is what happens when you run console apps that don't pause at the end
(because they assume you are running them within a console that you have
opened). You need to open the console (run "cmd.exe") and then enter the
DOS command or console application that you want to run. Then when it
exits, it returns back to the shell that you opened in the first place.

When you run the command from the Start->Run menu, you are opening only the
shell needed to execute the program. When the program exits, it exits and
its shell is no longer required so its console window disappears too when
the shell gets unloaded. When you load your own shell to show its console
window, the program exits but you are left in the shell that you opened.

If you don't want to enter "cmd.exe" using Start->Run and then enter the
program or command as the prompt in the console window, enter "cmd /k
<command>" which will open the shell, its console window, and run the
program, but the /k switch says to remain in the first shell after the
program exits (so that shell's console window remains).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top