A common thing to do is to save the @ERROR in $ERR or something similar, and then reference the $ERR variable.

Like Code:
Copy "\\" + $LocalServer + "\dep\collect.exe" $CompatInstallDir
$EC = @ERROR $ES = @SERROR
$=LogToChangeLog(ReadProfileString($IniFile,"DISPLAY","Description") +
" copying from " + $LocalServer,$ES, $EC)



Glenn
_________________________
Actually I am a Rocket Scientist! \:D