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

Click here to load this message in the networking platform