Now that you have a working Kix script...

You can add the MapDrive UDF to your code if you like and then use:
code:
MapDrive($Drive, $Server, $Share)
MapDrive("P:", "Venus", "Data")

The function takes care of making sure any exisiting mapping using the drive letter is deleted, mapping the drive, checking the success or failure, reporting the status, and logging the mapping/status if you include the Writlog UDF.
_________________________
Home page: http://www.kixhelp.com/hb/