Map a netwrok drive

Share this post
FaceBook  Twitter  Mixx.mn     

To map a network drive to your computer, use following code:
Steps:
1) Create a Wscript Network object
2) Map network drive to your computer


'' Map network drive script
Dim Drivename
Dim NetworkDrivepath
 Drivename="H:"
NetworkDrivepath= "\\ieleabc52\QA\Share"

'1) Create a Wscript Network object'
Set objNetwork = CreateObject("WScript.Network")

'2) Map network drive to your computer
objNetwork.MapNetworkDrive Drivename , NetworkDrivepath