title: Wildcard to get files by exact extension
body: <p>While diagnosing a larger batch script that needs to loop files with <code>*.log</code> extension I've found a funny behaviour. In a sample directory with files like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>bar.log
  foo.log
  foo.log.ignore
  foo.log.log-1676521099
  not-related
  </code></pre>
  
  <p>... my little test script:</p>
  
  <pre><code>@echo off
  setlocal enabledelayedexpansion
  set DEF_LOG="C:\test\*.log"
  for %%i in (%DEF_LOG%) do (
      echo %%i
  )
  </code></pre>
  
  <p>... prints this:</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\test\bar.log
  C:\test\foo.log
  C:\test\foo.log.log-1676521099
  </code></pre>
  
  <p>Digging deeper, I've found that's how Windows wildcards have been designed:</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\&gt;dir "C:\test\*.log" /b
  bar.log
  foo.log
  foo.log.log-1676521099
  </code></pre>
  
  <p>My question is: how can I list all files that end <em>exactly</em> with <code>.log</code>?</p>