Function Reference


DriveMapDel

Disconnects a network drive.

DriveMapDel ( "drive" )

Parameters

drive The device to disconnect, e.g. "O:" or "LPT1:".

Return Value

Success: 1.
Failure: 0 if the disconnection was unsuccessful.

Remarks

If a connection has no drive letter mapped you may use the connection name to disconnect, e.g. \\server\share

Related

DriveMapAdd, DriveMapGet

Example

; Map X drive to \\myserver\stuff using current user
DriveMapAdd("X:", "\\myserver\stuff")

; Disconnect
DriveMapDel("X:")