Need help with this IM batch command
Posted: 2011-08-01T23:54:02-07:00
How do I loop all the files in a given folder and then resize all images to 300x300?
I need some clue on how to do this in windows batch script.
This is my cmd.bat:
FOR EACH %%a in (*.jpg) DO convert.exe %%a -resize 640x640 C:\Temp\Destination\%%~na.jpg
This is how I am trying to call it:
cmd.bat c:\temp\images
But it is not writing anything to C:\Temp\Destination\
Thanks
I need some clue on how to do this in windows batch script.
This is my cmd.bat:
FOR EACH %%a in (*.jpg) DO convert.exe %%a -resize 640x640 C:\Temp\Destination\%%~na.jpg
This is how I am trying to call it:
cmd.bat c:\temp\images
But it is not writing anything to C:\Temp\Destination\
Thanks