Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapping a drive letter to a UNC name
Message
 
À
06/09/1996 11:02:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00007356
Message ID:
00007363
Vues:
36
>Is it possible, from the main.prg, to map a drive letter to a path named "\\server\c\test" ?

Enrico,

I haven't tried this, but I'm told it works:

DECLARE integer WNetAddConnection IN win32api string,string,string

x = WNetAddConnection("\\server\c\test",.NULL.,"H:")

IF x = 0
=Messagebox("connected"0,"")
ELSE
=MessageBox("unable to connect",0,"")
ENDIF

HTH,
Scot.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform