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

December 2016


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

Related :

This document entitled « Prevent the ipconfig or ping (cmd) window from closing down » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.