SET Input_PATCH1=D:\Hawkeye\hdr\dark\odd SET Input_PATCH2=D:\hawkeye\hdr\dark\even9a SET OUTPUT_PATCH=D:\hawkeye\hdr\dark\out SET start=216 SET end=430 FOR /L %%i IN (%start%,1,%end%) DO (CALL :loopbody %%i) GOTO :eof :loopbody enfuse.exe --soft-mask --exposure-weight=1.0 --saturation-weight=0.2 --contrast-weight=0.0 --entropy-weight=0.0 --exposure-optimum=0.4 --exposure-width=0.2 -v -o "%OUTPUT_PATCH%\%1.tiff" "%Input_PATCH1%\%1.bmp" "%Input_PATCH2%\%1.bmp" GOTO :eof