Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disconnect Mapped Network drive
Message
From
04/07/2011 12:42:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Disconnect Mapped Network drive
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01517262
Message ID:
01517262
Views:
113
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
Next
Reply
Map
View

Click here to load this message in the networking platform