将本地设备连接到网络资源
#Include <WinNet.au3>
_WinNet_AddConnection($sLocalName, $sRemoteName [, $sPassword = 0])
| $sLocalName | 资源的本地名称, 如"F:"或"LPT1". 字符串不区分大小写. 如果为0, 指向网络资源的连接不用重定向本地设备. |
| $sRemoteName | 要连接的网络资源的名称 |
| $sPassword | [可选参数] 用于创建连接的密码. 参数通常是关联当前用户的密码. 如果为0, 使用默认密码. 如果字符串为空, 不使用密码. |
| 成功: | 返回 True |
| 失败: | 返回 False |
在MSDN中搜索