title: Find if " - " is in a directory name (batch)
body: <p>In a batch I have a </p>
  
  <pre><code>for /d /r %%a in (*) do 
  </code></pre>
  
  <p>I want to do an action if %%a contains " - "   (ie white space + hyphen + white space) and another action if it doesn't contain this string.</p>
  
  <p>I cannot make it work! Do you have any idea? Thanks. </p>
  
  <p>[PS : My question is similar to this one : <a href="https://stackoverflow.com/questions/7005951/batch-file-find-if-substring-is-in-string-not-in-a-file">Batch file: Find if substring is in string (not in a file)</a>  but I'm unable to adapt it to make it work!]</p>