hello world

VBS映射网络驱动器 映射网络驱动器

Dim objNetwork
Set objNetwork = CreateObject("Wscript.Network")
if objNetwork.EnumNetworkDrives.count=0 then 'objNetwork.EnumNetworkDrives.count 判断网络驱动器是否存在
objNetwork.MapNetworkDrive "z:","\\192.168.0.100\MSlearn",true,"panda","123" '创建网络驱动器
end if
Set colDrives=nothing
set objNetwork=nothing

   欢迎加入QQ技术群聊:70539804

posted @ 2015-09-08 15:11  浩天四哥  阅读(1053)  评论(0编辑  收藏  举报