Код:
@echo off &setlocal enableextensions
set "folder=X:"
set /a minW=1680 &set /a minH=1050
set Iv="D:\***\i_view32.exe"
pushd %folder%
for /f "delims=" %%i in ('dir /b *.jpg *.jpeg') do (
title %%i
%Iv% "%%i" /info="%temp%\info.tmp"
for /f "tokens=3,4 delims==x " %%a in (
'findstr /c:"Image dimensions = " "%temp%\info.tmp"'
) do (set /a W=%%a &set /a H=%%b)
call %ComSpec% /c if %%W%%. LSS %minW%. echo del /q "%%i"
call %ComSpec% /c if %%H%%. LSS %minH%. echo del /q "%%i"
)
del /q "%temp%\info.tmp"
popd