>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.