+−-*- outline -*- +− +−* CMD tricks. +− +− $ set /p TOOLOUTPUT= < temp.txt +− +− $ for /f "tokens=*" %%i in ('%~dp0sometool.exe') do set TOOLOUTPUT=%%i +− +− $ for /f "tokens=1 delims=" %%s in (users.txt) do (echo %%S & command "%%S") >> outputfile.txt