Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making sure a network drive is mapped
Message
De
17/12/2002 06:13:54
 
 
À
17/12/2002 05:26:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00733567
Message ID:
00733582
Vues:
15
>Is there any way of ensuring a network connection is mapped before I try to append a record to a table on that drive?
>
>I have an app, and although it doesn't error the user is complaining that some records do not seem to have saved.
>
>I would assume that if I tried to append to a file that could not be accessed it would give me an error.
>
>I would like to call some code to remap the drive before I append just to cover myself.
>
>
>Any help would be much appreciated.
You can use this apis:

Declare integer WNetAddConnection in WIN32API string,string,string
Declare integer WNetGetConnection in WIN32API String,String,integer
testf = WNetGetConnection("f:","",0)
if testf = 2250
=WNetAddConnection("\merkez_nt\datalar", "", "f:")
endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform