@echo off echo l=0 1 2 3 4 5 6 7 8 9 md teste.resultado attrib -s -h teste.original\desktop.ini del teste.original\desktop.ini forfiles /P teste.original /S /C "cmd /c if @isdir==FALSE echo @relpath" >>teste.original.temp.txt dir /b *.original >>teste.original\teste.original.txt for /f %%i in (teste.original.temp.txt) do @echo %%~i >>teste.original\teste.original.txt del teste.original.temp.txt cd teste.original for %%l IN (0 1 2 3 4 5 6 7 8 9) DO ..\paq8px_v138.exe -%%l @teste.original.txt ..\teste.resultado\8px.v138.l%%l.paq8px138 echo del teste.original.txt cd.. pause