title: Get image file dimensions in .bat file
body: <p>I have a bat file that lists the paths of all images in a folder the code is</p>
  
  <pre><code>@echo off
  break &gt; infofile.txt
  for /f "delims=" %%F in ('dir /b /s *.bmp') do (
     echo %%F 1 1 1 100 100 &gt;&gt;infofile.txt 
  )
  </code></pre>
  
  <p><br>
  The text file looks like this</p>
  
  <pre><code>C:\Users\Charles\Dropbox\trainer\temp\positive\rawdata\diags(1).bmp 1 1 1 100 100  
  C:\Users\Charles\Dropbox\trainer\temp\positive\rawdata\diags(348).bmp 1 1 1 100 100  
  C:\Users\Charles\Dropbox\trainer\temp\positive\rawdata\diags(353).bmp 1 1 1 100 100  
  </code></pre>
  
  <p>What I want to do is replace the 100 100 at the end by the dimentions of each image width and height.. Thanks in advance.</p>