Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disconnect Mapped Network drive
Message
De
04/07/2011 12:42:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Disconnect Mapped Network drive
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01517262
Message ID:
01517262
Vues:
115
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform