If you are creating other batch files from your outputs then put a line like this in your batch file
echo %pathname%\foo.exe >part2.txt
then you can have your defined part1.txt
and part3.txt
already done and have your batch
copy part1.txt + part2.txt +part3.txt thebatyouwanted.bat