title: Windows bat script for loop if substring in string
body: <p>I'm trying to modify the for loop on a list of files <a href="https://stackoverflow.com/questions/138497/iterate-all-files-in-a-directory-using-a-for-loop">from here</a>, adding to it, a check if a sub-string exists in the file name:</p>
  
  <p><code>for /r %%i in (*) do echo %%i</code></p>
  
  <p>How can I modify the above windows bat script to check if a sub-string exists in a file name or not?</p>