I'm trying to read multiple lines from a text file and send them to another batch file like so -

for /f "tokens=*" %%a in (files.txt) do (
call go.bat "%%~a"

Here is go.bat -

echo %1 >> data.txt

I have 2 lines in files.txt but only the first is read. How do I read multiple lines?


Found my problem, had an "exit' command at the end of go.bat!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.