Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disconnect Mapped Network drive
Message
From
04/07/2011 13:04:30
 
 
To
04/07/2011 12:42:04
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01517262
Message ID:
01517265
Views:
65
>Dear Experts
>
>I use following codes to map net work drive
>
>
>declare integer WNetAddConnection In Win32Api as WNetAdd string @ RemoteDrive, String @ Password, String @ Localdrive
>Local lcRemote, lcPassword, lcLocal, lcPrvDrive
>lcRemote="\\kanta\d:"
>lcPassword=""
>lcLocal="Z:"
>
>If !Empty(WNetAdd(@lcRemote, @lcPassword, @ lcLocal))
>	Wait "Mapping Failed" Wind
>Else
>	Wait "Drive Mapped" Wind
>Endi
>
>
>These codes work fine.
>Now I want to ask How to modify codes to Disconnect mapped network drive?
>
>Please help


WHY?
Why not use UNC path?
Why you should MAP and then Disconnect?
Just use:
SET PATH TO "\\kanta\d\"
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform