Re: Getting Error Running Script
- From: "Ramesh, MS-MVP" <ramesh@xxxxxxxxxxxx>
- Date: Sat, 4 Feb 2006 21:00:42 +0530
YW David.
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"David Langschied" <DavidLangschied@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:16905FA6-7CB3-4E26-878E-925EE5E1404E@xxxxxxxxxxxxxxxx
I did not see that was missing! I had to change the line from the original
code and missed the parameter setting. Thanks!
"David Langschied" wrote:
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
.
- Prev by Date: Re: Missing Posts
- Next by Date: Re: Switching fat32 to NTFS and Back Again
- Previous by thread: Re: Getting Error Running Script
- Next by thread: Re: Cascading Windows Seemingly Endless
- Index(es):
Relevant Pages
|
Loading