Code: Select all
REM Printline:
REM Standard printline:
set "$file=test.txt"
for /f "tokens=1*" %%a in ('findstr /b /i "printline" "!$file!"') do (
set "command=%%a"
set "value=%%b"
echo !value!
goto :break
)
:break
I need it to process only the first line of test.txt. It currently "picks out" printline from the first point in test.txt, not necessarily the first line.
Can one do that?
Regards,
Rileyh
Edited by aGerman: Code tags corrected.