How to read line value from txt

July 21, 2010 at 03:52:12
Specs: Windows XP
Hello!

I need to get line value from txt file in cmd.
readme.txt content:
Schedule: normal
Author: user
Last: 5555

I need to get 5555 from the file.

Thanks!


See More: How to read line value from txt

Report •

#1
July 21, 2010 at 13:14:20
@echo off

for /f "tokens=1,2 delims=:" %%a in (readme.txt) do (
  if %%a=="Last" Echo Last = %%b
)


Report •
Related Solutions


Ask Question