两种方法: 1.通过前面的字符串来确定赋值变量

    1. @echo off
    2. for /f "delims=: tokens=1,2*" %%a in (D:\dailybuild\SVNinfo.txt) do (
    3. if "%%a"=="最后修改的修订版" set a=%%a:%%b
    4. )
    5. echo %a%
    6. pause

    2.如果确定它在第几行,用记数器来实现

    1. @echo off
    2. setlocal enabledelayedexpansion
    3. for /f "delims=" %%a in (D:\dailybuild\SVNinfo.txt) do (
    4. set /a n+=1
    5. if !n!==5 set a=%%a
    6. )