How to keep cammand window open

B

BG250

I need to run some command line progs such as ipconfig.exe (for an instant
check of my current IP address). I made a shortcut using ipconfig.exe, but
the window closes too fast to see the data. How can I keep the window open
after the command terminates? I tried making a .bat file with cmd.exe
followed by ipconfig.exe and only cmd.exe runs.
Thanks, bg
 
J

Jamie Ewart

Hi

Put Pause at the end of your batch file and these will make it stay open
until you press a key.

Jamie
 
D

dcdon

Hi bg,

Right drag your command prompt off the Start menu, choose create shortcut.
Right mouse the shortcut, choose properties.
In the Target command line place C:\WINNT\system32\cmd.exe /k ipconfig /all
In the Start In Window place C:\
The standard size window should have enough room for the /all switch if you need
it.


--
good computing,
don
--------

I need to run some command line progs such as ipconfig.exe (for an instant
check of my current IP address). I made a shortcut using ipconfig.exe, but
the window closes too fast to see the data. How can I keep the window open
after the command terminates? I tried making a .bat file with cmd.exe
followed by ipconfig.exe and only cmd.exe runs.
Thanks, bg
 

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