If you properly define the home share in the account properties as "\\server\account$", then the code I provided will look it up and parse the server and share from the string.

You then simply pass the values to the MapDrive function to map the drive.

Let me know if this makes more sense.
_________________________
Home page: http://www.kixhelp.com/hb/