>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement