Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network Drives
Message
 
À
13/01/2000 09:43:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00317558
Message ID:
00317575
Vues:
35
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform