Batch file set each line in a file as a variable Answered
I have the following code:
for /F "delims=" %%i in (test.txt) do set content=%content% %%i
This sets the last line of "test.txt" as the %content% variable. My only problem is that I want it to set each line as multiple variables.
FOr example, if "test.txt" has 7 lines of coding or letters and what not, I want my batch file containing the above command to be able to create a new variable for every line there is. Can someone figure this out somehow? Full credit to whoever does! Thank you!