DriveMapGet
获取映射驱动器的详细资料.
DriveMapGet ( "device" )
参数
device
|
设备(驱动器或打印机)名称. 如: "O:" 或 "LPT1:"
|
返回值
成功:
|
返回映射的详细资料. 例如: \服务器\共享
|
失败:
|
返回 "" (空字符串), 设置 @error 为 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:"))
----------------------------------------
该函数可以通过命令 exect 调用
参见:
DriveMapAdd, DriveMapDel
exect=DriveMapAdd('X:','\\myserver\stuff')||$var_sinfo=DriveMapGet('X:')||_ViewValues('$var_sinfo') ;; 连接X盘并获取连接信息
© Аверин Андрей для Total Commander Image Averin-And@yandex.ru
|