Disconnects a network drive.
DriveMapDel ( "drive" )
drive | The device to disconnect, e.g. "O:" or "LPT1:". |
Success: | 1. |
Failure: | 0 if the disconnection was unsuccessful. |
If a connection has no drive letter mapped you may use the connection name to disconnect, e.g. \\server\share
; Map X drive to \\myserver\stuff using current user
DriveMapAdd("X:", "\\myserver\stuff")
; Disconnect
DriveMapDel("X:")