You can use LocalDevice2UNC() function from
http://www.berezniker.com/display/VFP/Returning+UNC+path+associated+with+a+local+devicelcFileName = "f:\employeephoto\picture001.jpg"
lcUncFileName = LocalDevice2UNC(LEFT(lcFileName,2)) + SUBSTR(lcFilename,3)
>
>When getting the route for a photo employee I do This :
>
>
>Thisform.TxtPhoto.Picture = getpic("")
>
>within the click event of a command button form, and save the complete route , even like the logical letter like this:
>
>f:\employeephoto\picture001.jpg
>
>And it´s Ok.
>
>But, how can I save the route like this (instead the logical letter, set the server.
>
>\\mycentralserver\employeephoto\picture001.jpg
>
>Because in differents pc's , people has the same logical letter (F:) defined for different servers and my program does not found the real route for employees pictures.
--sb--