I'm not sure about all this binary stuff... but I slightly modified the wshpipe udf to dump out the last X number of lines. Very raw as it doesn't do much error checking... but might get you started...

Code:
 
Function Tail($file, $last)
Dim $oExec, $Output,$out[$last]
$oExec = CreateObject("WScript.Shell").Exec('%comspec% /c type "' + $file + '"')
If Not VarType($oExec)=9 $WshPipe="WScript.Shell Exec Unsupported" Exit 10 EndIf
$Output = $oExec.StdOut.ReadAll + $oExec.StdErr.ReadAll
$output=Split(Join(Split($Output,CHR(13)),''),CHR(10))
for $i=0 to $last
$out[$i]=$output[ubound($output)+$i-$last]
next
$tail=$out
Exit($oExec.ExitCode)
EndFunction