I am looking for code to map a network drive.
I have tried the following but receive error "Object Required".
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "L:", "\\mydrive\share"
and
Set ws = Server.CreateObject("WScript.Network")
ws.MapNetworkDrive "L:", "\\mydrive\share"
I would appreciate some assistance.
kevsim
I have tried the following but receive error "Object Required".
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "L:", "\\mydrive\share"
and
Set ws = Server.CreateObject("WScript.Network")
ws.MapNetworkDrive "L:", "\\mydrive\share"
I would appreciate some assistance.
kevsim