Cmd batchfile - keep window open?

  • Thread starter Thread starter Julian
  • Start date Start date
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,
 
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=
 
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
 
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!
 
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
 
Back
Top