Get image file dimensions in .bat file
问题 I have a bat file that lists the paths of all images in a folder the code is @echo off break > infofile.txt for /f "delims=" %%F in ('dir /b /s *.bmp') do ( echo %%F 1 1 1 100 100 >>infofile.txt ) The text file looks like this 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 What I want to do is