You could do this.
You need to include the mapdrive and writeanddisplay UDF's in the code.

!!WARNING!! NOT TESTED

Code:

Break on

$rc = MAPDRIVE('z','\\SERVER\share',1)
If $rc = 0
WriteAndDisplay("[OK]")
Else
WriteAndDisplay("[WARNING] " + @SERROR)
EndIf

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.