Search Windows and Linux Networking

Thursday, December 22, 2011

VBScript for Map share folder as Z: drive

VBScript for Map share folder as Z: drive 


'VBScript to Map folder as Z: Drive
Option Explicit
Dim objNetwork

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "Z:" , "\\Server.domainname.com\Share\"

No comments:

Post a Comment