1

I need help with creating a loop. The loop should take the first string in the file "filenames.txt" set that sting as a variable then execute a script including the variable, and repeat until it has done all the string in "filenames.txt".

1

1 Answer 1

3

try this:

for /f %%a in (filenames.txt) do (
  call "my script.bat" "%%~a"
)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.