Prevent the ipconfig or ping (cmd) window from closing down

October 2017


Whenever you run a command from the menu start/Run, the command window opens and immediately close without giving the time to consult the screen.


Below is a tips to stop this pattern.

To unable windows closure:

ping -t ip_address 
cmd /k ping ip_address 
cmd /k ipconfig /all 

To edit result in a text file:

cmd /k ping ip_address > c:\ping.txt 
cmd /k ipconfig /all > c:\ipconfig.txt
Published by deri58. Latest update on May 14, 2010 at 09:47 AM by aakai1056.
This document, titled "Prevent the ipconfig or ping (cmd) window from closing down," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (