title: How do I stop a loop by clicking the enter key in a batch file
body: <p>I have a batch file that, at a certain point, runs a loop of random numbers:</p>
  
  <pre><code>:rand1matrix
  echo %random%%random%%random%%random%
  goto rand1matrix
  </code></pre>
  
  <p>I want someone to be able to click the enter key and stop the loop, like</p>
  
  <pre><code>:rand1matrix
  echo %random%%random%%random%%random%
  pause
  goto rand1matrix
  </code></pre>
  
  <p>I just don't want the loop to stop and ask for someone to click enter. </p>