>Is there a way to map network drives from VFP?
>
>Thanks
Hi Kev,
There are several ways. Simplest way access file is to use the UNC path (\\SERVER\VOLUME\Filename). Also you could use one of the WNetAddConnection() functions to actually map the drive. I demonstrated this technique in "Working with Data Across Wide Area Networks" that appeared in the May, 1998 issue of FoxPro Advisor. However, it's probably easier to map a drive using the Windows Script Host function MapNetwordDrive(), since there's less code overhead involved. To use this you'd:
oNet = CREATEOBJECT('WScript.Network')
oNet.MapNetworkDrive("F:", "\\SERVER\VOLUME")
George
Ubi caritas et amor, deus ibi est