@echo off if -%1==- for %%f in (*.djvu) do call %0 %%f if not -%1==- "X:\Путь\ddjvu.exe" -format=tif -page=1 -size=128x128 %1 "%~dpn1_thumb.tif"