title: How do I test for button press on pause command in batch?
body: <p>I am writing a batch script, in which a user reads a disclaimer, then they press any key to continue, or "E" to exit. It looks something like this:</p>
  
  <pre><code>@echo off
  echo (some disclaimer text here)
  echo.
  echo once you fully understand this message, press any key to continue, or press "E" to exit.
  ::I know that pause doesn't take input, I'm just using it as a placeholder for something
  pause&gt;nul
  cls
  echo Welcome!
  pause
  </code></pre>
  
  <p>Is there any way to accomplish this? Thanks!</p>
  
  <p>To clarify, I want to exit the <em>second</em> they press the E key. I have seen it done before, but I forgot where it saw it.</p>