DriveMapDel

首页  后退  前进

DriveMapDel
down2

DriveMapDel

断开网络驱动器.

 

DriveMapDel ( "drive" )

参数

drive

中断连接的名称, 例如 "O:" 或 "LPT1:".

返回值

成功:

返回 1.

失败:

返回 0, 断开连接失败.

备注

若断开的连接没有映射驱动器盘符, 则使用中断连接的名称, 如: \服务器\共享

 

函数示例

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

----------------------------------------

 

该函数可以通过命令 exect 调用

参见:

DriveMapAdd, DriveMapGet

例子
copy

exect=DriveMapDel('X:') ;; 关闭驱动器

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru