title: Left-string, variable matching in a DOS command?
body: <p>Is it possible to do a string pattern match in DOS? For instance I want to do the following:</p>
  
  <pre><code>if "%USERNAME" == "abc*" (echo 1)
  </code></pre>
  
  <p>I know the asterisk doesn't work here and I can't find an alternative. Anyone have any ideas?</p>