|
Answer» Hello world, first POST for me here.
I've a problem about identify if an IMAGE is portrait or landscape...
Find a program that tell me meseurement in this FORMAT: myprog.exe test.jpg
[IPTCFIELDS] 3:40 = 256 3:50 = 171
So i write a small batch that find 2 VALUE (256,171) and PUT into a variable:
myprog.exe %1 -ds | for /f "Tokens=1-2 Delims==" %%e in ('find /I "3:40 ="') do set g=%%f myprog.exe %1 -ds | for /f "Tokens=1-2 Delims==" %%s in ('find /I "3:50 ="') do set h=%%t
all seems to work but in my environment %g% and %h% are not present.
Anyone can help me?
A.Try
for /f "Tokens=1,2,3 Delims==" %%e in ('myprog.exe %1 -ds | find /I "3:40 ="') do set g=%%f
|