title: Batch file to run IPCONFIG stuck in infinite loop
body: <p>I'm trying to create a very simple batch file that would run <code>ipconfig</code> and display the output, and then pause so I can see my machine's ip address on the local network.</p>
  
  <p>Here's the code :</p>
  
  <pre><code>ipconfig
  </code></pre>
  
  <p>Pretty simple right? Yet it doesn't work, the script starts an infinite loop :
  <a href="https://i.stack.imgur.com/158QN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/158QN.png" alt="enter image description here"></a></p>
  
  <p>Adding a <code>pause</code> command at the end of the script doesn't change anything. What am I missing?</p>