Batch .txt reader
问题 So, basically I want a Batch file to read a .txt. The problem is that the Batch file needs to update everytime a new line gets written to the .txt @echo off set "pc=%1" FOR /F "delims=:" %%A IN ('findstr /N .* "%pc%"') DO set "zeilen=%%A" type %pc% set /A zeilen1=%zeilen% :loop if not %zeilen% == %zeilen1% ( set "line=" set zeilen2=%zeilen% - 1 for /f %%a in ('more/e +%zeilen2% ^< %pc%') do ( if not defined line set "line=%%a" ) echo %line% set /A zeilen+=1 ) FOR /F "delims=:" %%A IN (