k, if you don't want the extra non-silenced zeros, use this version:
Code:

function LogErrors()
if @error
$errorString = @wksta + "--> " + @serror + " (" + @error + ")"
$=RedirectOutput($ErrorFile)
$errorString ?
$=RedirectOutput("")
endif
endfunction

_________________________
!

download KiXnet