Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force reconnection of a network mapped drive?
Message
From
04/11/2002 02:40:53
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00713586
Message ID:
00718382
Views:
14
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform