Using the Network Object of the Windows Scripting Host:
FUNCTION GetUNCPath
LPARAMETERS tcMappedDriveLetter
LOCAL lcRetPath,WshNetwork,oDrives,i
lcRetPath = ''
IF TYPE('tcMappedDriveLetter')<>'C'
RETURN lcRetPath
ENDIF
tcMappedDriveLetter=LEFT(tcMappedDriveLetter,1)
IF !DIRECTORY(tcMappedDriveLetter+':')
RETURN lcRetPath
ENDIF
WshNetwork = CREATEOBJECT("WScript.Network"

oDrives = WshNetwork.EnumNetworkDrives
*NOTE: this array is 0 based
FOR i = 0 To oDrives.Count - 1
IF oDrives.Item(i)=tcMappedDriveLetter
lcRetPath=oDrives.Item(i+1)
EXIT
ENDIF
ENDFOR
RETURN lcRetPath
ENDFUNC
If you can't use the WSH for whatever reasons, you can still do it with the API. [sig]<p>Jon Hawkins<br><a href=mailto: jonscott8@yahoo.com> jonscott8@yahoo.com</a><br><a href= > </a><br>Focus on the solution....Not the problem.[/sig]