@echo off setlocal enabledelayedexpansion for /f %%i in (shell/programs.txt) do ( call shell/build_sub.bat %%i ) endlocal echo "build complete!"