獲取已映射網(wǎng)絡(luò)驅(qū)動器的路徑。
DriveMapGet( "設(shè)備名" )
參數(shù)
| 設(shè)備名 | 要查詢的設(shè)備盤符(驅(qū)動器或打印機),例如"O:" 或 "LPT1:" |
返回值
| 成功: | 返回映射路徑,例如 \\server\share |
| 失�。� | 返回一個空字符串 "",并把 @error 設(shè)為 1。 |
注意
無
相關(guān)
DriveMapAdd, DriveMapDel
示例
; 映射 X 盤到 \\myserver\stuff,并使用當前用戶名進行連接
DriveMapAdd("X:", "\\myserver\stuff")
; 獲得該映射的路徑
MsgBox(0, "X:盤已被映射到", DriveMapGet("X:"))