just issue dir() and return the error code.
I bet it's 5.

checked to see is there problem with simple scriptlet:
code:
dir("e:\") ;connected to jooel3.lonkero...fi
for $=0 to 10
dir ?
next

and it worked just fine.
_________________________
!

download KiXnet