@echo off mkdir output for %%i in (*.tif) DO ( convert %%i -quality 85%% output\%%~ni.jpg )