Retrieves the details of a mapped drive.
DriveMapGet ( "device" )
device | The device (drive or printer) letter to query, e.g. "O:" or "LPT1:" |
Success: | a details of the mapping, e.g. \\server\share |
Failure: | an empty string "" and sets the @error flag to 1. |
#include <MsgBoxConstants.au3>
; Map X drive to \\myserver\stuff using current user
DriveMapAdd("X:", "\\myserver\stuff")
; Get details of the mapping
MsgBox($MB_SYSTEMMODAL, "", "Drive X: is mapped to: " & DriveMapGet("X:"))