The command is FOR with /F parameter like this. FOR /F %i in (yourFile.txt) DO yourcommand %i. this reads a ...
stackoverflow.com