title: How to find if a string is in a list of strings in a DOS batch file
body: <p>I'd like to check if an argument to a batch file is valid based on a list of strings. </p>
  
  <p>For example:</p>
  
  <pre><code>IF %1 IN validArgument1, validArgument2, validArgument3 SET ARG=%1
  </code></pre>
  
  <p>This would set ARG to one of the valid arguments only if it matched. Ideally case insensitively.</p>