I don't have experiences with cmd script, but I want to do a little thing that is deleting images with different dimensions that aren't 1920x1080 in just one folder. Every image there with 1920 px of Width is definetely a 1920x1080 image. So I made this script:
(for /r %%F in (*) do (
set "width="
set "height="
for /f "tokens=1*delims=:" %%b in ('"%%Width%%:%%Height%%"') do (
if %%~bF NEQ 1920 del "%%F"
)
)
But it's outputing that the file sintax name is incorrect and the files are not being deleted.
Thanks in advance.