1

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?

1 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .