Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Network Drives
Message
 
To
13/01/2000 09:43:47
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00317558
Message ID:
00317575
Views:
36
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform