simple test:
 Code:
use c: \\127.0.0.1\share
@error " " @serror ?
$=execute("use c: '\\127.0.0.1\share' $$ERROR=@@error")
@error " " @serror ?
"the actual error: " $ERROR ?


reveals that execute indeed resets the exit code.

my previous example execute was wrong, cause kixtart actually did $error = @error as comparison and added that to the code to execute, so you didn't get a return val.
_________________________
!

download KiXnet