Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Map Network Drive
Message
 
 
To
04/07/2011 03:41:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01517238
Message ID:
01517260
Views:
77
See if http://www.berezniker.com/content/pages/visual-foxpro/enumerate-available-drives can help

>
>I connect map network mannually as
>
>My computer --> Map Network Drive --> ..........
>
>
>I use following commands to check whether network drive is connected or not
>
>
>if not directory("Z:\")
>	messagebox("No Network Connection",0+16+256,"Accounts System")
>	clear events
>	quit
>else
>	messagebox("Network Connection Exists",0+16+256,"Accounts System")
>Endif
>
>
>After this Z drive is shown with other Hard Disks.
>
>Sometimes it says:
>
>	messagebox("No Network Connection",0+16+256,"Accounts System")
>
>
>But Z drive is still exists in my computer.
>
>Then I disconnect Map Network Drive and connect again
>
>Ater this I following messages is displayed
>
>
>messagebox("No Network Connection",0+16+256,"Accounts System")
>
>
>Why to repeat this again and again?
>
>I think the problem is in this line
>
>
>if not directory("Z:\")
>
>
>I want to ask, is there any other command to check network drive connection?
>
>
>Please help
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform