G
Guest
Hi.
I am getting an error running a script on Win XP Pro SP2.
The script attempts to map a network drive ---
Option Explicit
Dim fServer
Dim fpublic
Dim wshNet
fServer = "\\corp-group"
fpublic = "\ati"
Set wshNet = CreateObject("WScript.Network")
wshNet.MapNetworkDrive "h:", fServer & fpublic , "ati", "tigers8874"
This results in the following error:
---------------------------
Windows Script Host
---------------------------
Script: C:\conndir.vbs
Line: 9
Char: 1
Error: Type mismatch.
Code: 80020005
Source: WSHNetwork.MapNetworkDrive
I am getting an error running a script on Win XP Pro SP2.
The script attempts to map a network drive ---
Option Explicit
Dim fServer
Dim fpublic
Dim wshNet
fServer = "\\corp-group"
fpublic = "\ati"
Set wshNet = CreateObject("WScript.Network")
wshNet.MapNetworkDrive "h:", fServer & fpublic , "ati", "tigers8874"
This results in the following error:
---------------------------
Windows Script Host
---------------------------
Script: C:\conndir.vbs
Line: 9
Char: 1
Error: Type mismatch.
Code: 80020005
Source: WSHNetwork.MapNetworkDrive