Error codes are returned by MapDrive - simply display @SERROR immediately after the MapDrive function call.

 Code:
$Result = MapDrive(blah..)
If @ERROR
  'Mapdrive: ' @SERROR ?
EndIf


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