Cmd batchfile - keep window open?

J

Julian

I now have a little batch file that does "ipconfig /all |more" for me (how
absolutely delightfully retro that it should be necessary...)

How can I keep the cmd window upon when the ipconfig output has finished...
in case I want to /release, /renew or DEL *.* in a fit of pique...?

Ta,
 
T

the wharf rat

How can I keep the cmd window upon when the ipconfig output has finished...
in case I want to /release, /renew or DEL *.* in a fit of pique...?

@echo off
ipconfig/all
set/p dummy=
 
L

Lang Murphy

Julian said:
I now have a little batch file that does "ipconfig /all |more" for me (how
absolutely delightfully retro that it should be necessary...)

How can I keep the cmd window upon when the ipconfig output has
finished... in case I want to /release, /renew or DEL *.* in a fit of
pique...?

Ta,


"cmd /K ipconfig /all | more"

Lang
 
J

Julian

Thanks folks... I preferred cmd /K as I could see what that was doing, but
it doesn't work well in a batch file...

However, create a shortcut to cmd.exe and add "/K inconfig/all |more" to the
path and it works a treat!

Thanks!
 
L

Lang Murphy

Julian said:
Thanks folks... I preferred cmd /K as I could see what that was doing, but
it doesn't work well in a batch file...

However, create a shortcut to cmd.exe and add "/K inconfig/all |more" to
the path and it works a treat!

Thanks!

Glad you got it working to your satisfaction.

Lang
 

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