mmm...
I think the problem is that kix is getting it's info about net and macro's at the start of the script.

so, if you want to get the %errorlevel% into a script, try using just @error

I have got success with it everytime.
I have some ping script, user lastlogon time and that sort of scripts done with kix 3.55 and they work just fine.
_________________________
!

download KiXnet