1.

Solve : Run command for every line in file.?

Answer»

I have written a SCRIPT to generate a LIST of maps for a game. It then strips the .bsp as is required by my menu generation script. Now I need to make the SYSTEM run "menugen " for every line in that list. Every filename is on a new line. Can anyone help?file.txt

Quote

FRANCE
Germany
Italy
Spain


batch file

Quote
@echo off
FOR /f "delims==" %%A in (file.txt) do menugen "%%A"

result

Quote
menugen "France"
menugen "Germany"
menugen "Italy"
menugen "Spain"







<3

Perfect. THANKS


Discussion

No Comment Found