title: How to execute the choice command but not do anything
body: <p>My batch script uses the choice command. And in my script I would want to check if choice.exe exists because it is the application that has the choice command.</p>
  <p>And I know exactly how to do that.
  By executing the choice command and making it so that if it fails, it exits the script</p>
  <pre><code>choice || goto:nochoiceapp
  
  :nochoiceapp
  echo Cannot continue with script
  echo Your system doesn't have choice.exe
  pause
  </code></pre>
  <p>But I want to do this at the start of my script. Not just when the choice command is needed.</p>
  <p>And I want this to only check if choice.exe exists, not actually executing &quot;choice&quot;. It would lead to a choice prompt</p>
  <p>How do I make it so that it executes the choice command but does nothing?</p>