I tried it like this:
for /F %%i in (%textfile%) do (
echo %%i )
Or this:
for /F "tokens=* delims=" %%i in (%textfile%) do (
echo %%i )
Or every other combination, with or without tokens or delims.
All of those combinations just echo every line,but for whatever reason excluding the ones starting with a semicolon. Using a semicolon as a delim defeats the purpous because i can't recognize wich line used to start with a semicolon and wich did not.
If there is any way of correctly reading the lines with a semicolon or recognizing the semicolon lines after they were removed from the delims?