DOS Command

K

Ken Blake, MVP

When I type ipconfig in (Run) my Dos Window appears then drops


The Window closes when the command finishes. There are two solutions:

1. Run the command with the /k switch

2. First open a command Window by typing CMD, then type ipconfig in
it.
 
N

Nepatsfan

Chaswift said:
When I type ipconfig in (Run) my Dos Window appears then drops


You need to open a command prompt window first. Do either of the following.

Start -> Run -> Enter cmd.exe in the Open box.
Enter ipconfig /all at the prompt.

Start -> Run -> Enter cmd.exe /k ipconfig /all in the Open box.

Good luck

Nepatsfan
 
V

VanguardLH

in message
When I type ipconfig in (Run) my Dos Window appears then drops


That is because you are running a DOS-mode program that opens a
console window to display its stdout (standard output). When the
program exits, the console window also closes. If you want the
console window to remain open, have something else keep it open: run
"cmd.exe" which is the command-line interpreter that also opens its
own console window. Then when you run other DOS-mode programs within
that shell, the console window remains open (because you exit the
program but not cmd.exe to which the console window belongs).

So, run "cmd.exe" and then run your DOS-mode program. There should
already been shortcuts in your Start menu to run a "Command prompt"
(aka DOS shell) which run the cmd.exe program.
 

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

Top