Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force reconnection of a network mapped drive?
Message
De
04/11/2002 02:40:53
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00713586
Message ID:
00718382
Vues:
15
Mark-

I'm finally getting back to this problem, and not with good news, I'm afraid.

>Congrats! You have just posted a question that very few can test.

Ha! It's not so much *can* but are silly enough to _try_. *s*

>Just a non-SWAG, but does looping through all the letters F - Z and executing a llReturn = DIRECTORY(lcDir + [:\]) "activate" actual mapped drives so GETDIR() sees them?

Nope. Doesn't work. Nor do any number of alternatives that have occured to me to try such as checking FILE() or FCREATE().

>If the directory exists, then you could use API to disconnect then reconnect.

This is a remote (ha ha!) possibility, but if there's anything special about the connection, such as user, I'd lose that, wouldn't I?, by dropping the mapping and then reconnecting.

I really appreciate your code sample. I thought that one of the suggestions in this thread would do the trick, but I haven't been able to find a solution so far.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform