anchor.diff:    set "header="
     set "begin="
     set "first="
  +  set /a "count=0"
     (
       for /f "usebackq tokens=1* delims==" %%A in ("%input%") do (
  +      REM These line numbers should match logfile. If not, something is
  +      REM wrong.
  +      set /a "count+=1"
  +      echo Line# !count!: "%%A"
  +
         REM At this point %%A is {before =} and %%B is {after =}
         REM or Field & Value 
         rem echo --FIELD: %%A
  
positive.code: :: Thank you dbenham: http://stackoverflow.com/a/25657306/14420
  ::
  :: Debugging: uncomment lower case "rem" lines
  ::
  :: TODO: figure out how to extract date stamp from "XXCOPY ver ..." line
  ::
  setlocal enableDelayedExpansion
  
  
negative.code:   set line=%*
    if not "%line:~0,6%" equ "XXCOPY" goto :eof
  
    REM Get substring from "Windows" to end of line 
    set ".winver=Windows%line:*Windows=%"
    
    REM remove Windows substring from input line
    call set .tmp=%%line:%.winver%=%%
    
    REM Get substring beginning of line to first "ver" from temp string
    set ".xxver_date=%.tmp:*ver=%"
    set .
  
    REM Parse the remaining middle bit
    for /f "tokens=1-3 delims= " %%A in ("%.xxver_date%") do (
        set xxcopy_ver=%%A
        set run_date=%%B
        set run_time=%%C
  